You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2005/01/12 22:00:47 UTC

cvs commit: xml-xerces/c/samples/SCMPrint SCMPrint.cpp

cargilld    2005/01/12 13:00:47

  Modified:    c/samples/SCMPrint SCMPrint.cpp
  Log:
  Fix for xercesc-1219.
  
  Revision  Changes    Path
  1.6       +7 -0      xml-xerces/c/samples/SCMPrint/SCMPrint.cpp
  
  Index: SCMPrint.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SCMPrint/SCMPrint.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SCMPrint.cpp	28 Sep 2004 04:42:21 -0000	1.5
  +++ SCMPrint.cpp	12 Jan 2005 21:00:47 -0000	1.6
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2005/01/12 21:00:47  cargilld
  + * Fix for xercesc-1219.
  + *
    * Revision 1.5  2004/09/28 04:42:21  cargilld
    * Update sample to use an error handler and only generate xsmodel when a schema document has been loaded successfully.
    *
  @@ -507,6 +510,10 @@
   
   void processParticle(XSParticle *xsParticle)
   {
  +    if (!xsParticle) {
  +        XERCES_STD_QUALIFIER cout << "xsParticle is NULL"; 
  +        return;
  +    }
       XSParticle::TERM_TYPE termType = xsParticle->getTermType();
       if (termType == XSParticle::TERM_ELEMENT) {
           XSElementDeclaration *xsElement = xsParticle->getElementTerm();
  
  
  

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