Author: mthl
Date: Sat May 25 23:42:50 2019
New Revision: 1860026

URL: http://svn.apache.org/viewvc?rev=1860026&view=rev
Log:
Improved: Remove useless null check
(OFBIZ-10054)

Modified:
    
ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java

Modified: 
ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java?rev=1860026&r1=1860025&r2=1860026&view=diff
==============================================================================
--- 
ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java
 (original)
+++ 
ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java
 Sat May 25 23:42:50 2019
@@ -205,7 +205,7 @@ public final class ProductUtil {
                 // dispatchContext.put("keywords", "");
                 // dispatchContext.put("last_modified", "");
 
-                if (product != null && 
"AGGREGATED".equals(product.getString("productTypeId"))) {
+                if ("AGGREGATED".equals(product.getString("productTypeId"))) {
                     ProductConfigWrapper configWrapper = new 
ProductConfigWrapper(delegator, dispatcher, productId, null, null, null, null, 
locale, userLogin);
                     String listPrice = 
configWrapper.getTotalListPrice().setScale(2, 
RoundingMode.HALF_DOWN).toString();
                     if (listPrice != null)


Reply via email to