Author: scottbw
Date: Thu May 20 13:29:47 2010
New Revision: 946627
URL: http://svn.apache.org/viewvc?rev=946627&view=rev
Log:
Reordered validation in the Widget Helper - the null guard was being called
_after_ checking the widget's properties rather than before
Modified:
incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java
Modified: incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java?rev=946627&r1=946626&r2=946627&view=diff
==============================================================================
--- incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java
(original)
+++ incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java Thu
May 20 13:29:47 2010
@@ -83,12 +83,13 @@ public class WidgetHelper {
}
private static String getWidgetElement(Widget widget){
+ if (widget == null) return null;
String width = "";
String height = "";
if (widget.getWidth()!=null) width =
widget.getWidth().toString();
if (widget.getHeight()!=null) height =
widget.getHeight().toString();
- if (widget == null) return null;
+
String out = "";