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:18:58 UTC

svn commit: r450931 - /xerces/java/branches/stax-dev/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java

Author: mrglavas
Date: Thu Sep 28 10:18:57 2006
New Revision: 450931

URL: http://svn.apache.org/viewvc?view=rev&rev=450931
Log:
Fixing a potential NPE.

Modified:
    xerces/java/branches/stax-dev/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java

Modified: xerces/java/branches/stax-dev/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/stax-dev/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java?view=diff&rev=450931&r1=450930&r2=450931
==============================================================================
--- xerces/java/branches/stax-dev/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java (original)
+++ xerces/java/branches/stax-dev/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java Thu Sep 28 10:18:57 2006
@@ -222,7 +222,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