Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-78

NullPointerException in org.apache.james.smtpserver.SMTPHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1
    • None
    • SMTPServer
    • None
    • Operating System: Solaris
      Platform: Sun
    • 15831

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sanz@denic.de Marcos Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: