svn commit: r567508 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r567508 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

ruppert-2
Author: ruppert
Date: Sun Aug 19 16:30:19 2007
New Revision: 567508

URL: http://svn.apache.org/viewvc?rev=567508&view=rev
Log:
Fixed typo in not using size from list

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=567508&r1=567507&r2=567508&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java Sun Aug 19 16:30:19 2007
@@ -822,7 +822,7 @@
         Locale locale = (Locale) context.get("locale");
         ShoppingCart shoppingCart = (ShoppingCart) context.get("shoppingCart");
         String productId = (String) context.get("productId");
-        if (shoppingCart != null && shoppingCart.items() > 0){
+        if (shoppingCart != null && shoppingCart.items() != null && shoppingCart.items().size() > 0){
             List allItems = shoppingCart.items();
             List items = shoppingCart.findAllCartItems(productId);
             if (items.size() > 0) {