Bug #3570564 crash when there is a complexType has attribute "mixed" in a XSD
This commit is contained in:
parent
bc99b579db
commit
1c45b64afe
|
@ -547,7 +547,7 @@ void XmlPromptGenerator::getContent (
|
||||||
{
|
{
|
||||||
const SchemaElementDecl *elem = (const SchemaElementDecl *)spec->getElementDecl();
|
const SchemaElementDecl *elem = (const SchemaElementDecl *)spec->getElementDecl();
|
||||||
SubstitutionMap::const_iterator itr = substitutions.find ( elem );
|
SubstitutionMap::const_iterator itr = substitutions.find ( elem );
|
||||||
if ( itr == substitutions.end() )
|
if ( itr == substitutions.end() && elem != NULL )
|
||||||
itr = substitutions.find ( elem->getSubstitutionGroupElem() );
|
itr = substitutions.find ( elem->getSubstitutionGroupElem() );
|
||||||
if ( itr != substitutions.end() )
|
if ( itr != substitutions.end() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue