Author: jacopoc
Date: Fri Apr 27 22:59:18 2007
New Revision: 533302
URL:
http://svn.apache.org/viewvc?view=rev&rev=533302Log:
This should hopefully fix the npe reported in OFBIZ-922 by Arno Peters
Modified:
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl?view=diff&rev=533302&r1=533301&r2=533302==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl Fri Apr 27 22:59:18 2007
@@ -413,13 +413,13 @@
<#list partyContent as contentRole>
<#assign content = contentRole.getRelatedOne("Content")>
<#assign contentType = content.getRelatedOneCache("ContentType")>
- <#assign mimeType = content.getRelatedOneCache("MimeType")>
+ <#assign mimeType = content.getRelatedOneCache("MimeType")?if_exists>
<#assign status = content.getRelatedOneCache("StatusItem")>
<tr>
<td><a href="<@ofbizUrl>img/${content.contentName}?imgId=${content.dataResourceId}</@ofbizUrl>" class="buttontext">${content.contentId}</a>
<td><div class="tabletext">${content.contentName?if_exists}</div></td>
<td><div class="tabletext">${(contentType.get("description",locale))?if_exists}</div></td>
- <td><div class="tabletext">${(mimeType.description)?if_exists}</div></td>
+ <td><div class="tabletext">${mimeType?if_exists.description?if_exists}</div></td>
<td><div class="tabletext">${(status.get("description",locale))?if_exists}</div></td>
<td><div class="tabletext">${contentRole.fromDate?if_exists}</div></td>
<td align="right">