Commons Logging
  1. Commons Logging
  2. LOGGING-115

NPE thrown due to exception message logging

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.1
    • Labels:
      None
    • Environment:

      Java 1.6u2 on Windows XP Professional

      Description

      NullPointerException is thrown in more catch blocks while building a log message. Eg. in class LogFactory there can be found construction Exception.getMessage().trim() (lines 470, 484 and 547) but there is no check for null message which could happen as written in java doc.

        Activity

        Frantisek Jandos created issue -
        Hide
        Simon Kitching added a comment -

        Thanks very much for the report!

        This has now been fixed (r593798), and will be in the 1.1.1 release.
        Note that this problem could only occur when diagnostics are enabled.

        Show
        Simon Kitching added a comment - Thanks very much for the report! This has now been fixed (r593798), and will be in the 1.1.1 release. Note that this problem could only occur when diagnostics are enabled.
        Simon Kitching made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 1.1.1 [ 12312160 ]
        Status Open [ 1 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        13d 17h 50m 1 Simon Kitching 10/Nov/07 17:46

          People

          • Assignee:
            Unassigned
            Reporter:
            Frantisek Jandos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development