掲示板

NullPointerException when settting a portlet 2.0 preference to null

13年前 に Salvatore Piccione によって更新されました。

NullPointerException when settting a portlet 2.0 preference to null

New Member 投稿: 6 参加年月日: 11/01/25 最新の投稿
Hello everybody!

I developed a portlet JSR 286-compliant. I experienced a NullPointerException when I tried to call PortletPreferences.setValue(String,String) and passing null as value. The Portlet 2.0 Specification states that the method I called should accept a null value.
I am using Liferay 6.0.4 and 6.0.5.
Am I wrong or could this issue be a bug?

Regards,

Salvatore
13年前 に Salvatore Piccione によって更新されました。

RE: NullPointerException when settting a portlet 2.0 preference to null

New Member 投稿: 6 参加年月日: 11/01/25 最新の投稿
I apologise: there was an error in my code that caused the NullPointerException. Liferay correctly and fully supports the method PortletPreferences.setValue(String,String).