Author: lektran
Date: Sat Sep 5 00:56:07 2009
New Revision: 811581
URL:
http://svn.apache.org/viewvc?rev=811581&view=revLog:
Fix a problem where empty Collections fail the field type check
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=811581&r1=811580&r2=811581&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 Sat Sep 5 00:56:07 2009
@@ -246,6 +246,8 @@
Collection valueCol = (Collection) value;
if (valueCol.size() > 0) {
value = valueCol.iterator().next();
+ } else {
+ value = null;
}
}