xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amass...@apache.org
Subject svn commit: r802792 - /xerces/c/trunk/src/xercesc/internal/XMLScanner.cpp
Date Mon, 10 Aug 2009 13:41:48 GMT
Author: amassari
Date: Mon Aug 10 13:41:48 2009
New Revision: 802792

URL: http://svn.apache.org/viewvc?rev=802792&view=rev
Log:
Add check for NULL (XERCESC-1863)

Modified:
    xerces/c/trunk/src/xercesc/internal/XMLScanner.cpp

Modified: xerces/c/trunk/src/xercesc/internal/XMLScanner.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/internal/XMLScanner.cpp?rev=802792&r1=802791&r2=802792&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/internal/XMLScanner.cpp (original)
+++ xerces/c/trunk/src/xercesc/internal/XMLScanner.cpp Mon Aug 10 13:41:48 2009
@@ -1270,7 +1270,7 @@
 
                     // if reusing grammar, this has been validated already in first scan
                     // skip for performance
-                    if (fValidate && !fGrammar->getValidated()) {
+                    if (fValidate && fGrammar && !fGrammar->getValidated())
{
                         //  validate the DTD scan so far
                         fValidator->preContentValidation(fUseCachedGrammar, true);
                     }



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


Mime
View raw message