You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/09/28 19:17:17 UTC
svn commit: r450930 -
/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
Author: mrglavas
Date: Thu Sep 28 10:17:16 2006
New Revision: 450930
URL: http://svn.apache.org/viewvc?view=rev&rev=450930
Log:
Fixing a potential NPE.
Modified:
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
Modified: xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java?view=diff&rev=450930&r1=450929&r2=450930
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java Thu Sep 28 10:17:16 2006
@@ -223,7 +223,9 @@
catch (IOException e) {
// this hasn't been reported, so do so now.
SAXParseException se = new SAXParseException(e.getMessage(),null,e);
- fErrorHandler.error(se);
+ if (fErrorHandler != null) {
+ fErrorHandler.error(se);
+ }
throw se; // and we must throw it.
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org