struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4045) Null Pointer Exception on DefaultActionValidatorManager
Date Fri, 17 May 2013 09:37:15 GMT

    [ https://issues.apache.org/jira/browse/WW-4045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660492#comment-13660492
] 

Lukasz Lenart edited comment on WW-4045 at 5/17/13 9:35 AM:
------------------------------------------------------------

It must be something else, {{DefaultFileManger#loadFile}} can handle null - it will return
null in that case and the rest of the code also can handle null.

Could you prepare a working example, Maven based? Or instruct me how to reproduce that NPE?
                
      was (Author: lukaszlenart):
    It must be something else, {{DefaultFileManger#loadFile}} can handle null - it will return
null in that case and the rest of the code also can handle null.

Could you prepare a working example, Maven based? Or instruct me how reproduce that NPE?
                  
> Null Pointer Exception on DefaultActionValidatorManager
> -------------------------------------------------------
>
>                 Key: WW-4045
>                 URL: https://issues.apache.org/jira/browse/WW-4045
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.7
>            Reporter: Fritzi
>             Fix For: 2.3.15
>
>
> With the change implemented on WW-3850, I think the missing piece is that if the validatorFileCache
does not contain the fileName being modified, that the line  is = fileManager.loadFile(fileUrl);
is still being executed which will still result in a null pointer exception.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message