Author: jacopoc
Date: Thu Aug 20 13:03:42 2009
New Revision: 806155
URL:
http://svn.apache.org/viewvc?rev=806155&view=revLog:
Fix for NPE happening when an invalid product id is passed to the page.
Modified:
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy
Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy?rev=806155&r1=806154&r2=806155&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy Thu Aug 20 13:03:42 2009
@@ -20,6 +20,7 @@
import org.ofbiz.entity.condition.*
import org.ofbiz.product.inventory.InventoryWorker
+if (product) {
//If product is virtual gather summary data from variants
if (product.isVirtual && "Y".equals(product.isVirtual)) {
//Get the virtual product feature types
@@ -158,4 +159,5 @@
context.manufacturingOutQuantitySummaryByFacility = manufacturingOutQuantitySummaryByFacility;
context.showEmpty = showEmpty;
context.purchaseOrders = purchaseOrders;
+}
}
\ No newline at end of file