You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by "Tom M. Yeh" <to...@infoshock.com> on 2001/10/25 14:44:58 UTC

Crimson: a bug in ElementNode2

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

Posted by Edwin Goei <ed...@sun.com>.
"Tom M. Yeh" wrote:
> 
> 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");

Could you send me a test program that exhibits the bug?

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org