處理範本時發生錯誤。
The following has evaluated to null or missing:
==> request.getParameter("contentId") [in template "46722#46768#913013" at line 1, column 22]
----
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: #assign contentId = request.getParame... [in template "46722#46768#913013" at line 1, column 1]
---- 1<#assign contentId = request.getParameter("contentId") /> 2 3<#macro redirectWhenEmpty> 4 <script type="text/javascript"> 5 window.location = "${contentListLink.getFriendlyUrl()}"; 6 </script> 7 <#return> 8</#macro> 9 10<#if !contentId?has_content> 11 <@redirectWhenEmpty /> 12</#if> 13 14<#assign targetColumn = {} /> 15<#assign columnSubject = "" /> 16 17<#if columnTitle.getSiblings()?has_content> 18 <#list columnTitle.getSiblings() as column> 19 <#if column.hashCode()?c == contentId> 20 <#assign targetColumn = column /> 21 <#break> 22 </#if> 23 </#list> 24</#if> 25 26<#if !targetColumn?has_content> 27 <@redirectWhenEmpty /> 28<#else> 29 <#assign columnSubject = targetColumn.getData() /> 30</#if> 31 32<script type="text/javascript"> 33 <#-- javascript parameters for shared buttons --> 34 var columnSubject = "${columnSubject}"; 35 36 var sharePageType = "full-content"; 37 38 <#-- javascript for setting meta values. "metaDescription" is defined in "breadcrumb.vm". --> 39 var metaDescription = columnSubject; 40 metaDescription += " - ${columnSubject}"; 41 document.querySelector('meta[name="description"]').setAttribute("content", metaDescription); 42 document.querySelector('meta[property="og:description"]').setAttribute("content", metaDescription); 43</script> 44 45<div class="movie_list container"> 46 <h1 class="main_content-title sm"><span>${columnSubject}</span></h1> 47 <div class="row"> 48 <div class="col-lg-12 col-md-12 col-sm-12"> 49 <div id="news_page_content"> 50 <#if targetColumn?has_content> 51 ${targetColumn.columnContent.getData()} 52 </#if> 53 <br> 54 <p> 55 <#if targetColumn?has_content> 56 <#if targetColumn.thumbnail.getSiblings()?has_content> 57 <#assign index = 0 /> 58 <#list targetColumn.thumbnail.getSiblings() as columnImageUrl> 59 <#if index != 0> 60 <img alt="" src="${columnImageUrl.getData()}" /><br> 61 62 </#if> 63 <#assign index = index + 1 /> 64 </#list> 65 </#if> 66 </#if> 67 </p> 68 </div> 69 </div> 70 </div> 71</div>