[
https://issues.jboss.org/browse/GTNWSRP-338?page=com.atlassian.jira.plugi...
]
Chris Laprun updated GTNWSRP-338:
---------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
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
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