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/04/04 15:14:58 UTC

cvs commit: xml-xerces/c/src/validators/DTD DTDElementDecl.cpp

tng         01/04/04 06:14:57

  Modified:    c/src/validators/DTD DTDElementDecl.cpp
  Log:
  Error checking for null content spec.  By Alberto Massari.
  
  Revision  Changes    Path
  1.12      +4 -1      xml-xerces/c/src/validators/DTD/DTDElementDecl.cpp
  
  Index: DTDElementDecl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/validators/DTD/DTDElementDecl.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DTDElementDecl.cpp	2001/03/21 21:56:19	1.11
  +++ DTDElementDecl.cpp	2001/04/04 13:14:57	1.12
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: DTDElementDecl.cpp,v 1.11 2001/03/21 21:56:19 tng Exp $
  + * $Id: DTDElementDecl.cpp,v 1.12 2001/04/04 13:14:57 tng Exp $
    */
   
   
  @@ -350,6 +350,9 @@
   {
       // Get the content spec node of the element
       const ContentSpecNode* specNode = getContentSpec();
  +
  +    if(!specNode)
  +        ThrowXML(RuntimeException, XMLExcepts::CM_UnknownCMSpecType);
   
       //
       //  Do a sanity check that the node is does not have a PCDATA id. Since,
  
  
  

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