[
https://issues.apache.org/jira/browse/PLUTO-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marc Veary updated PLUTO-391:
-----------------------------
Attachment: patch-PLUTO-391.txt
If null is returned from a call to getStoredPreferences() then a
NullPointerException will be thrown the constructor of the
PortletPreferencesImpl class. It could also present issues to any
implementation of the PortletPreferencesService optional container service.
> 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
> Fix For: 1.2.0
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.