knoaman 2003/12/17 11:58:25 Modified: c/src/xercesc/internal XSObjectFactory.cpp Log: Check for NULL when building XSParticle Revision Changes Path 1.11 +6 -1 xml-xerces/c/src/xercesc/internal/XSObjectFactory.cpp Index: XSObjectFactory.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XSObjectFactory.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- XSObjectFactory.cpp 17 Dec 2003 00:18:34 -0000 1.10 +++ XSObjectFactory.cpp 17 Dec 2003 19:58:25 -0000 1.11 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.11 2003/12/17 19:58:25 knoaman + * Check for NULL when building XSParticle + * * Revision 1.10 2003/12/17 00:18:34 cargilld * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data. * @@ -151,8 +154,10 @@ XSObjectFactory::createModelGroupParticle(const ContentSpecNode* const rootNode, XSModel* const xsModel) { - ContentSpecNode::NodeTypes nodeType = rootNode->getType(); + if (rootNode == 0) + return 0; + ContentSpecNode::NodeTypes nodeType = rootNode->getType(); if (nodeType == ContentSpecNode::All || nodeType == ContentSpecNode::ModelGroupChoice || nodeType == ContentSpecNode::ModelGroupSequence)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]