Author: jleroux
Date: Tue Nov 24 13:10:38 2009
New Revision: 883682
URL:
http://svn.apache.org/viewvc?rev=883682&view=revLog:
Replaces a not needed call to isEmpty()
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java?rev=883682&r1=883681&r2=883682&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java Tue Nov 24 13:10:38 2009
@@ -271,7 +271,7 @@
}
ModelField curField = modelEntity.getField(fieldName);
- if (UtilValidate.isEmpty(curField)) {
+ if (curField == null) {
throw new IllegalArgumentException("FieldName " + fieldName + " not found for entity: " + modelEntity.getEntityName());
}
ModelFieldType type = null;