You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Ate Douma (JIRA)" <je...@portals.apache.org> on 2006/11/05 14:06:17 UTC
[jira] Assigned: (JS2-607) An error occur when trying storing a
null value in preferences
[ http://issues.apache.org/jira/browse/JS2-607?page=all ]
Ate Douma reassigned JS2-607:
-----------------------------
Assignee: Ate Douma
> An error occur when trying storing a null value in preferences
> --------------------------------------------------------------
>
> Key: JS2-607
> URL: http://issues.apache.org/jira/browse/JS2-607
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Portlet Entities and Preferences
> Affects Versions: 2.0-FINAL, 2.1-dev
> Environment: Windows XP.
> Reporter: Marc F.
> Assigned To: Ate Douma
> Fix For: 2.1, 2.1-dev
>
>
> When I try storing a null value, like below:
> public void processAction(ActionRequest aRequest, ActionResponse aResponse)
> throws PortletException, IOException {
> //...
> PortletPreferences prefs = aRequest.getPreferences();
> prefs.setValue("cellPhone", null);
> //...
> }
> An exception occur:
> java.lang.NullPointerException
> at java.util.prefs.AbstractPreferences.put(AbstractPreferences.java
> :224)
> at org.apache.jetspeed.om.preference.impl.PrefsPreference.setValueAt
> (PrefsPreference.java:138)
> at org.apache.jetspeed.om.preference.impl.PrefsPreference.setValues(
> PrefsPreference.java:235)
> etc...
> It occurs only when I try storing a null value. It is not in conformity to the Portlet API documentation:
> "The key cannot be null, but null values for the value parameter are
> allowed."
> Certainly Jetspeed 2 is not obeying the rules very
> well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org