You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Kamran Kashanian (JIRA)" <de...@myfaces.apache.org> on 2007/11/07 20:48:50 UTC

[jira] Created: (TRINIDAD-803) NPE in UIXCollection saveStampState()

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.


[jira] Commented: (TRINIDAD-803) NPE in UIXCollection saveStampState()

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541165 ] 

Jeanne Waldman commented on TRINIDAD-803:
-----------------------------------------

Checked this patch into 1.2.3.1.
It needs to go into trunk and 1.0.4-prerelease as well(since it will get into 1.2.4 and we need to keep 1.0.4 and 1.2.4 in sync).

> 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
>            Assignee: Jeanne Waldman
>             Fix For: 1.2.3-core
>
>         Attachments: trinidad-1.2.3.stamp-state.patch, trinidad-1.2.3.stamp-state2.patch
>
>
> 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.


[jira] Updated: (TRINIDAD-803) NPE in UIXCollection saveStampState()

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeanne Waldman updated TRINIDAD-803:
------------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

this is now in 1.0.4-prerelease branch and trunk. It will get into 1.2.4-branch and 1.0.4 and is in 1.2.3.1-branch.

> 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
>            Assignee: Jeanne Waldman
>             Fix For: 1.2.3-core
>
>         Attachments: trinidad-1.2.3.stamp-state.patch, trinidad-1.2.3.stamp-state2.patch
>
>
> 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.


[jira] Updated: (TRINIDAD-803) NPE in UIXCollection saveStampState()

Posted by "Kamran Kashanian (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kamran Kashanian updated TRINIDAD-803:
--------------------------------------

    Status: Patch Available  (was: Open)

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