Bug #3570564 crash when there is a complexType has attribute "mixed" in a XSD

This commit is contained in:
Zane U. Ji 2012-09-24 22:05:20 +08:00
parent bc99b579db
commit 1c45b64afe
1 changed files with 1 additions and 1 deletions

View File

@ -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() )
{