[gatein-issues] [JBoss JIRA] (GTNWSRP-338) RichFaces fileUpload fix results in NullPointerException

Chris Laprun (JIRA) jira-events at lists.jboss.org
Tue Nov 27 04:42:22 EST 2012


     [ https://issues.jboss.org/browse/GTNWSRP-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Laprun updated GTNWSRP-338:
---------------------------------

    Fix Version/s: 2.2.0.Final
                       (was: 2.2.0.CR04)

    
> RichFaces fileUpload fix results in NullPointerException
> --------------------------------------------------------
>
>                 Key: GTNWSRP-338
>                 URL: https://issues.jboss.org/browse/GTNWSRP-338
>             Project: GateIn WSRP
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.2.0.CR03
>            Reporter: Martin Weiler
>            Assignee: Chris Laprun
>             Fix For: 2.2.0.Final
>
>
> The fix that was committed to fix GTNWSRP-323 leads to a NullPointerException in MultiPartUtil.MultiPartResult:
> {code}
>       public List<NamedString> getFormParameters()
>       {
>          if (formParameters != null)
>          {
>             formParameters = new ArrayList<NamedString>();
>          }
>          return formParameters;
>       }
>       
>       public List<UploadContext> getUploadContexts()
>       {
>          if (uploadContexts != null)
>          {
>             uploadContexts = new ArrayList<UploadContext>();
>          }
>          return uploadContexts;
>       }
> {code}
> This should be changed to have the lists properly initialized:
> {code} 
> if (formParameters == null)
> ...
> if (uploadContexts == null)
> {code}

--
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


More information about the gatein-issues mailing list