[
https://issues.apache.org/jira/browse/JS2-664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ate Douma closed JS2-664.
-------------------------
Resolution: Won't Fix
Fix Version/s: (was: 2.2)
The Java Preferences back-end is going to be replaced with a new directly
managed implementation so this specific problem will no longer exist.
See also: JS2-869
> getPreference returns null with a default value of ""
> -----------------------------------------------------
>
> Key: JS2-664
> URL: https://issues.apache.org/jira/browse/JS2-664
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Portlet Entities and Preferences
> Affects Versions: 2.2
> Reporter: David Sean Taylor
> Assignee: David Sean Taylor
>
> The User Browser was getting a NPE exception since the code expected "" to be
> returned from getPreferences().getValue with a default value provided:
> String roleFilter = request.getPreferences().getValue("FilterByRole",
> "");
> if (roleFilter == null)
> roleFilter = "";
> See commit:
> http://svn.apache.org/viewvc?view=rev&revision=519196
> When a default value of "" is provided, it would be expected to get back "",
> not NULL
> However, NULL is being returned at times
> It seems that this only occurs with an Oracle database backend
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]