At line 433 in org.apache.crimson.tree.ElementNode2.getAttributeNodeNS && (attr.getNamespaceURI() == namespaceURI... shall add a test of whether attr.getNamespaceURI is null. Otherwise, the following statement will cause a NullPointerException -- while it shall return false. element.hasAttributeNS("a-uri", "a-attribute-without-namespace"); Regards, Tom Yeh
- Re: Crimson: a bug in ElementNode2 Tom M. Yeh
- Re: Crimson: a bug in ElementNode2 Edwin Goei