[jira] [Closed] (PLUTO-391) DefaultPortletPreferenceService#clonePreferences can return a null instead of an empty array and cause a NullPointerException
"Scott Nicklous (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.jakarta.pluto.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/PLUTO-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Nicklous closed PLUTO-391.
--------------------------------
Resolution: Cannot Reproduce
retest with v3
> DefaultPortletPreferenceService#clonePreferences can return a null instead of an empty array and cause a NullPointerException
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: PLUTO-391
> URL: https://issues.apache.org/jira/browse/PLUTO-391
> Project: Pluto
> Issue Type: Bug
> Components: portlet container
> Affects Versions: 1.1.3
> Environment: All
> Reporter: Marc Veary
> Attachments: patch-PLUTO-391.txt
>
>
> The DefaultPortletPreferenceService class has a private method clonePreferences() that can return 'null' whereas it should instead return an empty array. The value returned is used in a for-loop in another methd without any check for the array object being null.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)