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:08:57 UTC

cvs commit: xml-xerces/c/src/validators/schema ComplexTypeInfo.cpp

tng         01/10/12 11:08:57

  Modified:    c/src/validators/schema ComplexTypeInfo.cpp
  Log:
  make sure the second node exists before calling getType
  
  Revision  Changes    Path
  1.20      +5 -1      xml-xerces/c/src/validators/schema/ComplexTypeInfo.cpp
  
  Index: ComplexTypeInfo.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/validators/schema/ComplexTypeInfo.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ComplexTypeInfo.cpp	2001/10/04 15:08:56	1.19
  +++ ComplexTypeInfo.cpp	2001/10/12 18:08:57	1.20
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: ComplexTypeInfo.cpp,v $
  + * Revision 1.20  2001/10/12 18:08:57  tng
  + * make sure the second node exists before calling getType
  + *
    * Revision 1.19  2001/10/04 15:08:56  knoaman
    * Add support for circular import.
    *
  @@ -360,7 +363,7 @@
           fSpecNodesToDelete = new RefVectorOf<ContentSpecNode>(8);
       }
   
  -    // expand the content spec first   
  +    // expand the content spec first
       ContentSpecNode* aSpecNode = specNode;
       if (aSpecNode) {
   
  @@ -479,6 +482,7 @@
           //  be a simple content model
           //
           if ((specNode->getFirst()->getType() == ContentSpecNode::Leaf)
  +        &&  (specNode->getSecond())
           &&  (specNode->getSecond()->getType() == ContentSpecNode::Leaf))
           {
               return new SimpleContentModel
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org