[patch] NPE bug in gnu.xml.aelfred2.JAXPFactory
Maarten Coene <[email protected]> Mon, 19 Apr 2004 16:41:20 +0200
| Newsgroups | gmane.comp.java.classpath.extensions.discuss |
|---|---|
| Organization | QMedit |
| Message-ID | <[email protected]> |
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 {