myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamran Kashanian (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (TRINIDAD-803) NPE in UIXCollection saveStampState()
Date Wed, 07 Nov 2007 19:48:50 GMT
NPE in UIXCollection saveStampState()
-------------------------------------

                 Key: TRINIDAD-803
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-803
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 1.2.3-core
         Environment: All (Tested on Windows XP SP2)
            Reporter: Kamran Kashanian
             Fix For: 1.2.3-core


Some recent optimizations were added to the saveStampState() method in the UIXCollection component
in Trinidad 1.2.3. Under certain circumstances (certain combination of stamped components
inside the UIXCollection), this change can cause a NullPointerException. 

Specifically, if a stamped component contains a combination of facets, some of which have
state to save and some have no state, the saveStampState() method can create a state array
with null values for facet names. The null facet names can later cause a NullPointerException
in restoreStampState().

Attach is a patch for the saveStampState() method to avoid saving null facet names. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message