[ 
https://issues.apache.org/jira/browse/JS2-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Sean Taylor updated JS2-472:
----------------------------------

    Affects Version/s:     (was: 2.1-dev)
                       2.2.0
                       2.1.3
        Fix Version/s: 2.2.0

> FragmentImpl.getFragments() can be null but is assumed not null
> ---------------------------------------------------------------
>
>                 Key: JS2-472
>                 URL: https://issues.apache.org/jira/browse/JS2-472
>             Project: Jetspeed 2
>          Issue Type: Bug
>    Affects Versions: 2.1.3, 2.2.0
>            Reporter: David Jencks
>            Assignee: Randy Watler
>             Fix For: 2.2.0
>
>         Attachments: FragmentImpl.diff, JS2-472-FragmentImpl.diff
>
>
> org.apache.jetspeed.om.page.psml.FragmentImpl.getFragments() can return null 
> if all fragments fail the security check: see line 560.
> However, ContentFragmentImpl assumes that a non-null value is returned: for 
> instance in ContentFragmentList.duplicateList().
> I assume the best fix is to always return a list, even if empty.
> I will supply a patch in the next day or two.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-dev-h...@portals.apache.org

Reply via email to