Author: doogie
Date: Wed Jun 24 20:39:32 2009
New Revision: 788176
URL:
http://svn.apache.org/viewvc?rev=788176&view=revLog:
Egg on face, need to be more careful with undoing changes that aren't
ready to be commited. This actually compiles now. :|
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=788176&r1=788175&r2=788176&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Wed Jun 24 20:39:32 2009
@@ -721,9 +721,9 @@
}
public static String elementAttribute(Element element, String attrName, String defaultValue) {
- if (node == null) return defaultValue;
+ if (element == null) return defaultValue;
String attrValue = element.getAttribute(attrName);
- return UtilValidate.isNotEmpty(attrValue) attrValue ? defaultValue;
+ return UtilValidate.isNotEmpty(attrValue) ? attrValue : defaultValue;
}
public static String checkEmpty(String string) {