You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ru...@apache.org on 2007/08/20 01:30:20 UTC

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

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) {