svn commit: r812120 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r812120 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java

jacopoc
Author: jacopoc
Date: Mon Sep  7 13:09:47 2009
New Revision: 812120

URL: http://svn.apache.org/viewvc?rev=812120&view=rev
Log:
Fix to prevent NPE.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java?rev=812120&r1=812119&r2=812120&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java Mon Sep  7 13:09:47 2009
@@ -2289,7 +2289,9 @@
             width = Integer.toString(imageField.getWidth());
         }
 
-        height = Integer.toString(imageField.getHeight());
+        if (imageField.getHeight() != null) {
+            height = Integer.toString(imageField.getHeight());
+        }
 
         String event = modelFormField.getEvent();
         String action = modelFormField.getAction(context);