Author: jleroux
Date: Fri Nov 27 07:49:04 2009
New Revision: 884763
URL:
http://svn.apache.org/viewvc?rev=884763&view=revLog:
Fix a bug related to r884761 and OFBIZ-3265
Modified:
ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy
Modified: ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy?rev=884763&r1=884762&r2=884763&view=diff==============================================================================
--- ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy (original)
+++ ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy Fri Nov 27 07:49:04 2009
@@ -21,7 +21,7 @@
import org.ofbiz.product.inventory.InventoryWorker
//If product is virtual gather summary data from variants
-if (product.isVirtual && "Y".equals(product.isVirtual)) {
+if (product && product.isVirtual && "Y".equals(product.isVirtual)) {
//Get the virtual product feature types
result = dispatcher.runSync("getProductFeaturesByType", [productId : productId, productFeatureApplTypeId : 'SELECTABLE_FEATURE']);
featureTypeIds = result.productFeatureTypes;