You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Frantisek Jandos (JIRA)" <ji...@apache.org> on 2007/10/28 01:57:50 UTC

[jira] Created: (LOGGING-115) NPE thrown due to exception message logging

NPE thrown due to exception message logging
-------------------------------------------

                 Key: LOGGING-115
                 URL: https://issues.apache.org/jira/browse/LOGGING-115
             Project: Commons Logging
          Issue Type: Bug
    Affects Versions: 1.1.0
         Environment: Java 1.6u2 on Windows XP Professional
            Reporter: Frantisek Jandos


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (LOGGING-115) NPE thrown due to exception message logging

Posted by "Simon Kitching (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOGGING-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Kitching closed LOGGING-115.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.1

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.

> NPE thrown due to exception message logging
> -------------------------------------------
>
>                 Key: LOGGING-115
>                 URL: https://issues.apache.org/jira/browse/LOGGING-115
>             Project: Commons Logging
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>         Environment: Java 1.6u2 on Windows XP Professional
>            Reporter: Frantisek Jandos
>             Fix For: 1.1.1
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.