From 1c45b64afe5221c5da19eb59a56aaf6dbbf985fe Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Mon, 24 Sep 2012 22:05:20 +0800 Subject: [PATCH] Bug #3570564 crash when there is a complexType has attribute "mixed" in a XSD --- src/xmlpromptgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmlpromptgenerator.cpp b/src/xmlpromptgenerator.cpp index edbd920..16a0bef 100755 --- a/src/xmlpromptgenerator.cpp +++ b/src/xmlpromptgenerator.cpp @@ -547,7 +547,7 @@ void XmlPromptGenerator::getContent ( { const SchemaElementDecl *elem = (const SchemaElementDecl *)spec->getElementDecl(); SubstitutionMap::const_iterator itr = substitutions.find ( elem ); - if ( itr == substitutions.end() ) + if ( itr == substitutions.end() && elem != NULL ) itr = substitutions.find ( elem->getSubstitutionGroupElem() ); if ( itr != substitutions.end() ) {