Author: jacopoc
Date: Thu May 6 16:05:02 2010
New Revision: 941788
URL:
http://svn.apache.org/viewvc?rev=941788&view=revLog:
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}