You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2012/11/11 12:14:45 UTC

svn commit: r1407939 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Author: lektran
Date: Sun Nov 11 11:14:44 2012
New Revision: 1407939

URL: http://svn.apache.org/viewvc?rev=1407939&view=rev
Log:
Remove unnecessary null check

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?rev=1407939&r1=1407938&r2=1407939&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java Sun Nov 11 11:14:44 2012
@@ -3212,7 +3212,7 @@ public class PaymentGatewayServices {
             requestContext.put("paymentGatewayConfigId", paymentGatewayConfigId);
         }
         // check the service name
-        if (paymentService == null || (paymentGatewayConfigId == null && paymentConfig == null)) {
+        if (paymentService == null || paymentGatewayConfigId == null) {
             return ServiceUtil.returnError(UtilProperties.getMessage(resource, 
                     "AccountingPaymentSettingNotValid", locale));
         }