[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Classpathx-discuss] [patch] NPE bug in gnu.xml.aelfred2.JAXPFactory
From: |
Maarten Coene |
Subject: |
[Classpathx-discuss] [patch] NPE bug in gnu.xml.aelfred2.JAXPFactory |
Date: |
Mon, 19 Apr 2004 16:41:20 +0200 |
User-agent: |
Mozilla Thunderbird 0.5 (Windows/20040207) |
Hi,
the gnu.xml.aelfred2.JAXPFactory.getFeature(String name) method throws a
NullPointerException if you check for a feature that hasn't been set at
the factory level.
Here is a patch that fixes this.
regards,
Maarten
Index: JAXPFactory.java
===================================================================
RCS file: /cvsroot/classpathx/jaxp/src/gnu/xml/aelfred2/JAXPFactory.java,v
retrieving revision 1.2
diff -u -r1.2 JAXPFactory.java
--- JAXPFactory.java 14 Apr 2004 15:40:02 -0000 1.2
+++ JAXPFactory.java 19 Apr 2004 14:35:39 -0000
@@ -117,7 +117,7 @@
{
Boolean value = (Boolean) flags.get (name);
- if (value == null)
+ if (value != null)
return value.booleanValue ();
else
try {
- [Classpathx-discuss] [patch] NPE bug in gnu.xml.aelfred2.JAXPFactory,
Maarten Coene <=