Menu

#1 PropertyDefaultSource - paramID - NullPointerException

open
nobody
None
5
2003-06-20
2003-06-20
Anonymous
No

On line 229 of PropertyDefaultSource.java, the length()
method is called on a String (paramID) even though the
'if' statement before this 'else if' has deterimed it
is null.

The result is that if any extra variables are in the
config file and not declared in the variable idmap, it
will throw a NullPointerException and fail to parse the
entire file.

I've attached what I think the author intended to write.

-Garrett Held (garrettheld@yahoo.com)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.