Author: jacopoc
Date: Sun Jun 24 23:49:13 2007
New Revision: 550384
URL:
http://svn.apache.org/viewvc?view=rev&rev=550384Log:
Fixed bug reported by Anil Patel in the mailing list.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java?view=diff&rev=550384&r1=550383&r2=550384==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityJoinOperator.java Sun Jun 24 23:49:13 2007
@@ -156,8 +156,9 @@
}
public void validateSql(ModelEntity modelEntity, List conditionList) throws GenericModelException {
- if (conditionList == null || conditionList.size() == 0)
- throw new GenericModelException("Empty list for joining");
+ if (conditionList == null) {
+ throw new GenericModelException("Condition list is null");
+ }
for (int i = 0; i < conditionList.size(); i++) {
Object condObj = conditionList.get(i);
if (!(condObj instanceof EntityCondition)) {