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: [email protected]
For additional commands, e-mail: [email protected]