Author: lektran
Date: Tue Mar 23 23:39:20 2010
New Revision: 926857
URL:
http://svn.apache.org/viewvc?rev=926857&view=revLog:
allCategories can't be null here
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java?rev=926857&r1=926856&r2=926857&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CategoryWorker.java Tue Mar 23 23:39:20 2010
@@ -85,8 +85,6 @@ public class CategoryWorker {
try {
Collection<GenericValue> allCategories = delegator.findList("ProductCategory", null, null, null, null, false);
- if (allCategories == null)
- return;
for (GenericValue curCat: allCategories) {
Collection<GenericValue> parentCats = curCat.getRelatedCache("CurrentProductCategoryRollup");