You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Damien Hazard (JIRA)" <ji...@apache.org> on 2012/06/08 14:34:22 UTC

[jira] [Created] (WW-3839) TextProviderHelper causes NPE when "msg" null and WARN log level enabled

Damien Hazard created WW-3839:
---------------------------------

             Summary: TextProviderHelper causes NPE when "msg" null and WARN log level enabled
                 Key: WW-3839
                 URL: https://issues.apache.org/jira/browse/WW-3839
             Project: Struts 2
          Issue Type: Bug
            Reporter: Damien Hazard


TextProviderHelper causes a NPE at line 97, when testing "msg.equals(defaultMessage)" with null "msg" (which is always true, see line 81 !) for logging WARN message.

--> Need to change the log level on this class to pass through.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WW-3839) TextProviderHelper causes NPE when "msg" null and WARN log level enabled

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

Lukasz Lenart resolved WW-3839.
-------------------------------

    Resolution: Fixed
      Assignee: Lukasz Lenart

Solved, thanks for reporting!
                
> TextProviderHelper causes NPE when "msg" null and WARN log level enabled
> ------------------------------------------------------------------------
>
>                 Key: WW-3839
>                 URL: https://issues.apache.org/jira/browse/WW-3839
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Damien Hazard
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.5
>
>
> TextProviderHelper causes a NPE at line 97, when testing "msg.equals(defaultMessage)" with null "msg" (which is always true, see line 81 !) for logging WARN message.
> --> Need to change the log level on this class to pass through.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3839) TextProviderHelper causes NPE when "msg" null and WARN log level enabled

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

Lukasz Lenart updated WW-3839:
------------------------------

    Fix Version/s: 2.3.5
    
> TextProviderHelper causes NPE when "msg" null and WARN log level enabled
> ------------------------------------------------------------------------
>
>                 Key: WW-3839
>                 URL: https://issues.apache.org/jira/browse/WW-3839
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Damien Hazard
>             Fix For: 2.3.5
>
>
> TextProviderHelper causes a NPE at line 97, when testing "msg.equals(defaultMessage)" with null "msg" (which is always true, see line 81 !) for logging WARN message.
> --> Need to change the log level on this class to pass through.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3839) TextProviderHelper causes NPE when "msg" null and WARN log level enabled

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420665#comment-13420665 ] 

Hudson commented on WW-3839:
----------------------------

Integrated in Struts2 #508 (See [https://builds.apache.org/job/Struts2/508/])
    WW-3839 solves problem with NPE when Log level is WARN (Revision 1364627)

     Result = SUCCESS
lukaszlenart : 
Files : 
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/TextProviderHelper.java

                
> TextProviderHelper causes NPE when "msg" null and WARN log level enabled
> ------------------------------------------------------------------------
>
>                 Key: WW-3839
>                 URL: https://issues.apache.org/jira/browse/WW-3839
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Damien Hazard
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.5
>
>
> TextProviderHelper causes a NPE at line 97, when testing "msg.equals(defaultMessage)" with null "msg" (which is always true, see line 81 !) for logging WARN message.
> --> Need to change the log level on this class to pass through.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira