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

Martin Weiler (JIRA) jira-events at lists.jboss.org
Fri Nov 23 02:18:21 EST 2012


Martin Weiler created GTNWSRP-338:
-------------------------------------

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


More information about the gatein-issues mailing list