Author: jacopoc
Date: Tue Jan 27 10:26:49 2009
New Revision: 738050
URL:
http://svn.apache.org/viewvc?rev=738050&view=revLog:
Cleaned up code to avoid NPE.
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=738050&r1=738049&r2=738050&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 Tue Jan 27 10:26:49 2009
@@ -552,7 +552,7 @@
// create the cart
ShoppingCart cart = new ShoppingCart(delegator, productStoreId, locale, currency);
// set shopping cart type
- if (quote.getString("quoteTypeId").equals("PURCHASE_QUOTE")){
+ if ("PURCHASE_QUOTE".equals(quote.getString("quoteTypeId"))){
cart.setOrderType("PURCHASE_ORDER");
cart.setBillFromVendorPartyId(quote.getString("partyId"));
}