xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom M. Yeh" <tom...@infoshock.com>
Subject Crimson: a bug in ElementNode2
Date Thu, 25 Oct 2001 12:44:58 GMT
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
Mime
View raw message