You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/08/05 20:23:34 UTC
DO NOT REPLY [Bug 30497] New: -
ExtendedProperties should not just allow NPEs
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30497>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30497
ExtendedProperties should not just allow NPEs
Summary: ExtendedProperties should not just allow NPEs
Product: Commons
Version: 3.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Minor
Priority: Other
Component: Collections
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: john.tal@gxs.com
Its really an annoyance because I frequently have my debugger stop on
NullPointerException.
ExtendedProperties.readProperty
Change from
String line = readLine().trim();
to
String line = readLine();
if(line != null) line = line.trim(); else return null;
Also in ExtendedProperties.load
while (true) {
String line = reader.readProperty();
if(line == null)
return;
int equalSign = line.indexOf('=');
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org