Author: lektran
Date: Fri Apr 6 13:50:46 2007
New Revision: 526273
URL:
http://svn.apache.org/viewvc?view=rev&rev=526273Log:
Small fix for a number parse exception, note quantityStr will only ever be null if the quantity param is not defined in the form
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java?view=diff&rev=526273&r1=526272&r2=526273==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java Fri Apr 6 13:50:46 2007
@@ -301,7 +301,7 @@
} else if (paramMap.containsKey("quantity")) {
quantityStr = (String) paramMap.remove("quantity");
}
- if (quantityStr == null) {
+ if (UtilValidate.isEmpty(quantityStr)) {
quantityStr = "1"; // default quantity is 1
}