Author: jacopoc
Date: Mon Sep 7 13:09:47 2009
New Revision: 812120
URL:
http://svn.apache.org/viewvc?rev=812120&view=revLog:
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);