[jdom-interest] getText() returns null or ""
brett.mclaughlin at lutris.com
Tue Oct 3 09:37:16 PDT 2000
What's the deal with getText() returning null when it has no value?
That's what the docs say, and I guess that one just slipped by me (I've
been really busy lately ;-) ). In any case, that doesn't seem right -
wouldn't it be better to return ""? Is there any functional difference
between "" and null? It seems that returning null could cause
NullPointerExceptions, while "" always insures you can compare Strings.
Thoughts? I'd like to suggest changing to returning the empty String
when there's no value.
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc.
1200 Pacific Avenue, Suite 300
Santa Cruz, CA 95060 USA
More information about the jdom-interest