Author: doogie
Date: Sun Oct 21 16:02:11 2007
New Revision: 586966
URL:
http://svn.apache.org/viewvc?rev=586966&view=revLog:
Collection size can not be negative.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelGroupReader.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelGroupReader.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelGroupReader.java?rev=586966&r1=586965&r2=586966&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelGroupReader.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelGroupReader.java Sun Oct 21 16:02:11 2007
@@ -197,7 +197,7 @@
Collection<String> enames = new LinkedList<String>();
if (groupName == null || groupName.length() <= 0) return enames;
- if (gc == null || gc.size() < 0) return enames;
+ if (gc == null || gc.size() == 0) return enames;
for (Map.Entry<String, String> entry: gc.entrySet()) {
if (groupName.equals(entry.getValue())) enames.add(entry.getKey());
}