You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/10/12 20:07:56 UTC
cvs commit: xml-xerces/c/src/validators/common ContentSpecNode.cpp
tng 01/10/12 11:07:56
Modified: c/src/validators/common ContentSpecNode.cpp
Log:
check for null curNode before proceeds to formatNode
Revision Changes Path
1.7 +4 -1 xml-xerces/c/src/validators/common/ContentSpecNode.cpp
Index: ContentSpecNode.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/common/ContentSpecNode.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ContentSpecNode.cpp 2001/08/28 20:21:08 1.6
+++ ContentSpecNode.cpp 2001/10/12 18:07:56 1.7
@@ -55,7 +55,7 @@
*/
/*
- * $Id: ContentSpecNode.cpp,v 1.6 2001/08/28 20:21:08 peiyongz Exp $
+ * $Id: ContentSpecNode.cpp,v 1.7 2001/10/12 18:07:56 tng Exp $
*/
@@ -112,6 +112,9 @@
, const ContentSpecNode::NodeTypes parentType
, XMLBuffer& bufToFill)
{
+ if (!curNode)
+ return;
+
const ContentSpecNode* first = curNode->getFirst();
const ContentSpecNode* second = curNode->getSecond();
const ContentSpecNode::NodeTypes curType = curNode->getType();
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org