Author: jacopoc
Date: Sat Aug  5 23:35:07 2006
New Revision: 429114

URL: http://svn.apache.org/viewvc?rev=429114&view=rev
Log:
Fixed npe while paginating on a result list after an unconstrained search 
(productId null).
Thanks to Jacques Le Roux of the bug report OFBIZ-130.

Modified:
    
incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh

Modified: 
incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh?rev=429114&r1=429113&r2=429114&view=diff
==============================================================================
--- 
incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh
 (original)
+++ 
incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh
 Sat Aug  5 23:35:07 2006
@@ -23,6 +23,9 @@
 import org.ofbiz.base.util.UtilMisc;
 
 productId = request.getParameter("productId");
+if (productId == null) {
+    productId = "";
+}
 
 conditionList = new LinkedList();
 orConditionList = new LinkedList();


Reply via email to