DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15831>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15831 NullPointerException in org.apache.james.smtpserver.SMTPHandler Summary: NullPointerException in org.apache.james.smtpserver.SMTPHandler Product: James Version: 2.1 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: SMTPServer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have some NullPointerExceptions in my log file because of this line: final String readCommandLine() throws IOException { return inReader.readLine().trim(); } Wouldn't it be much smarter: final String readCommandLine() throws IOException { String line = inReader.readLine(); if (null == line) return null; else return line.trim(); } I don't think it breaks any code this way. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
