ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jler...@apache.org
Subject svn commit: r1426734 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
Date Sat, 29 Dec 2012 10:02:15 GMT
Author: jleroux
Date: Sat Dec 29 10:02:15 2012
New Revision: 1426734

URL: http://svn.apache.org/viewvc?rev=1426734&view=rev
Log:
A patch from Olivier Heintz for "My Portal Preferences error" https://issues.apache.org/jira/browse/OFBIZ-5073

Select My Portal > Preferences, displays bellow error.
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.NullPointerException (null)



Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=1426734&r1=1426733&r2=1426734&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Sat Dec 29 10:02:15
2012
@@ -289,7 +289,7 @@ public class WidgetWorker {
                 writer.append(key);
                 writer.append("\" value=\"");
 
-                String valueFromContext = context.containsKey(key) ?
+                String valueFromContext = context.containsKey(key) && context.get(key)!=
null ?
                         context.get(key).toString() : parameter.getValue();
                 writer.append(valueFromContext);
                 writer.append("\" type=\"hidden\"/>");



Mime
View raw message