[jdom-interest] NoSuchAttributeException

Carey Boldenow c.boldenow at cytera.com
Sat Aug 26 22:18:27 PDT 2000

I have an Element which may or may not contain a certain attribute. When I check for the value of this attribute i.e. elem.getAttribute("type").getValue() and it is not there, my program is throwing a null pointer exception. I have tried adding a NoSuchAttributeException to my catch block but my code will not compile. I have seen this exception somewhere in JDOM documentation. Has it been removed, if so, how can I do this.

Thanks for any help!

Carey Boldenow

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20000826/5122807c/attachment.htm

More information about the jdom-interest mailing list