Author: lektran
Date: Sat Aug 28 09:47:07 2010
New Revision: 990334
URL:
http://svn.apache.org/viewvc?rev=990334&view=revLog:
Replace null check with a null safe expression (even though productTypeId should never be null anyway)
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java?rev=990334&r1=990333&r2=990334&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java Sat Aug 28 09:47:07 2010
@@ -115,7 +115,7 @@ public class ProductConfigWrapper implem
basePrice = price;
}
questions = FastList.newInstance();
- if (product.getString("productTypeId") != null && product.getString("productTypeId").equals("AGGREGATED")) {
+ if ("AGGREGATED".equals(product.getString("productTypeId"))) {
List<GenericValue> questionsValues = delegator.findByAnd("ProductConfig", UtilMisc.toMap("productId", productId), UtilMisc.toList("sequenceNum"));
questionsValues = EntityUtil.filterByDate(questionsValues);
Set<String> itemIds = FastSet.newInstance();