Author: jacopoc
Date: Mon May 26 21:52:00 2008
New Revision: 660376
URL:
http://svn.apache.org/viewvc?rev=660376&view=revLog:
Fix for NPE happening under some circumstances.
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?rev=660376&r1=660375&r2=660376&view=diff==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/customer/viewprofile.ftl Mon May 26 21:52:00 2008
@@ -416,14 +416,14 @@
<#assign mimeType = content.getRelatedOneCache("MimeType")?if_exists>
<#assign status = content.getRelatedOneCache("StatusItem")>
<tr>
- <td><a href="<@ofbizUrl>img/${content.contentName?if_exists}?imgId=${content.dataResourceId}</@ofbizUrl>" class="buttontext">${content.contentId}</a>
+ <td><a href="<@ofbizUrl>img/${content.contentName?if_exists}?imgId=${content.dataResourceId?if_exists}</@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?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">
- <a href="<@ofbizUrl>img/${content.contentName?if_exists}?imgId=${content.dataResourceId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonView}</a>
+ <a href="<@ofbizUrl>img/${content.contentName?if_exists}?imgId=${content.dataResourceId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonView}</a>
<a href="<@ofbizUrl>removePartyAsset?contentId=${contentRole.contentId}&partyId=${contentRole.partyId}&roleTypeId=${contentRole.roleTypeId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a>
</td>
</tr>