svn commit: r883682 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java

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

svn commit: r883682 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityExpr.java

jleroux@apache.org
Author: jleroux
Date: Tue Nov 24 13:10:38 2009
New Revision: 883682

URL: http://svn.apache.org/viewvc?rev=883682&view=rev
Log:
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;