Details

      Description

      Reproduction Steps:

      1. **Create a blog via an Asset publisher on a blogs page
      2. Publish the Blog

      An error comes up in which you cannot recover the page.

      Error: 

      An error occurred while processing the template.The following has evaluated to null or missing:
      ==> blogEntry.getCoverImageURL(themeDisplay)  [in template "20101#20128#39072" at line 18, column 161]
      
      ----
      Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
      ----
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: ${blogEntry.getCoverImageURL(themeDis...  [in template "20101#20128#39072" at line 18, column 159]
      ----1<hr /> 2<#if entries?has_content> 3	<div class="row"> 4		<#list entries as curEntry> 5		<#assign 6            curEntry = curEntry 7			assetRenderer = curEntry.getAssetRenderer() 8			blogEntry = assetRenderer.getAssetObject() 9            entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) 10            viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) 11		/> 12			<div class="col-md-4 entry-card lfr-asset-item"> 13				<div class="card-type-asset form-check form-check-card form-check-top-left image-card"> 14					<div class="container-fluid container-fluid-max-sm"> 15					<div class="card card-type-asset"> 16							<div class="aspect-ratio card-item-first"> 17								<a href="${viewURL}"> 18									<img alt="Cover Image" class="aspect-ratio-item aspect-ratio-item-center-middle" src="${blogEntry.getCoverImageURL(themeDisplay)}" style="max-height:100%;"> 19								</a> 20							</div> 21							<div class="card-body"> 22								<div class="card-row"> 23									<div class="autofit-col autofit-col-expand"> 24                                        <h3 class="card-title"> 25											<a href="${viewURL}">${entryTitle}</a> 26										</h3> 27										<div class="card-subtitle" title="Author Action">${blogEntry.getDisplayDate()?date}</div> 28									</div> 29								</div> 30							</div> 31						</div> 32					</div> 33				</div> 34			</div> 35		</#list> 36	</div> 37</#if> Page 1 of 2 
      

      Reproduced on 

      Tomcat 9.0.17 + HSQL

      Portal 7.2X Git ID 

       

        Attachments

          Activity

            People

            Assignee:
            yvonne.han Yvonne Han
            Reporter:
            jacob.cerda Jacob Cerda (Inactive)
            Participants of an Issue:
            Recent user:
            Yvonne Han
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              32 weeks, 5 days ago

                Packages

                Version Package