svn commit: r1721067 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/viewcontent.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1721067 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/viewcontent.ftl

jleroux@apache.org
Author: jleroux
Date: Sun Dec 20 21:14:05 2015
New Revision: 1721067

URL: http://svn.apache.org/viewvc?rev=1721067&view=rev
Log:
Prevents a possible "NPE", found in trunk demo logs (it's a treasure I will continue to dig in...)

freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> lastContent.description  [in template "component://ecommerce/webapp/ecommerce/content/viewcontent.ftl" at line 38, column 38]


Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/viewcontent.ftl

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/viewcontent.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/viewcontent.ftl?rev=1721067&r1=1721066&r2=1721067&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/viewcontent.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/content/viewcontent.ftl Sun Dec 20 21:14:05 2015
@@ -35,7 +35,7 @@ under the License.
 </#if>
 
 <#if lastContent?has_content>
-    <h1>[${lastContent.contentId}] ${lastContent.description}</h1>
+    <h1>[${lastContent.contentId}] ${lastContent.description!}</h1>
 </#if>
 <#--
 <#assign globalNodeTrail=[]/>