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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to