You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2010/05/06 18:05:03 UTC
svn commit: r941788 -
/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/PaymentMethods.ftl
Author: jacopoc
Date: Thu May 6 16:05:02 2010
New Revision: 941788
URL: http://svn.apache.org/viewvc?rev=941788&view=rev
Log:
Fix to prevent a NPE if the CreditCard record is missing.
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/PaymentMethods.ftl
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/PaymentMethods.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/PaymentMethods.ftl?rev=941788&r1=941787&r2=941788&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/PaymentMethods.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/PaymentMethods.ftl Thu May 6 16:05:02 2010
@@ -52,7 +52,7 @@ under the License.
<#list paymentMethodValueMaps as paymentMethodValueMap>
<#assign paymentMethod = paymentMethodValueMap.paymentMethod/>
<tr>
- <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId>
+ <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId && paymentMethodValueMap.creditCard?has_content>
<#assign creditCard = paymentMethodValueMap.creditCard/>
<td class="label">
${uiLabelMap.AccountingCreditCard}