Legal Click-Thru

Extended Viewer

An error occurred while processing the template.
The following has evaluated to null or missing:
==> direct_download_cutoff_date  [in template "10159#10199#1377864" at line 16, column 6]

----
Tip: If the failing expression is known to be 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: #if direct_download_cutoff_date.getDa...  [in template "10159#10199#1377864" at line 16, column 1]
----
1<#-- 
2## IPD Factsheet template 
3--> 
4 
5<#assign articleTool = journalArticleTool > 
6<#assign articleHelper = articleTool.getArticleHelper(.vars['reserved-article-id'].data) > 
7<#assign journalArticle = articleHelper.getArticle() > 
8<#assign portalUrl = themeDisplay.getPortalURL() > 
9<#assign pageUrl = "/real-estate-registration/-/forms/action/checkUrl" > 
10<#assign redirectw2l = portalUrl + pageUrl > 
11<#assign last_modified_date = .vars['reserved-article-modified-date'].data > 
12<#assign last_modified_date = last_modified_date?date("EEE, dd MMM yyyy") > 
13<#assign dateFormat="dd MMM yyyy 'UTC'" > 
14<#assign timeZone = timeZoneUtil.getTimeZone(user.getTimeZoneId()) > 
15<#assign last_modified_date = dateUtil.getDate(last_modified_date, dateFormat, locale, timeZone) > 
16<#if direct_download_cutoff_date.getData()?? && direct_download_cutoff_date.getData() != ""> 
17<#assign direct_download_cutoff_date_Data = direct_download_cutoff_date.getData()?date("yyyy-MM-dd")?long > 
18<#else> 
19<#assign direct_download_cutoff_date_Data = 0 > 
20</#if> 
21 
22<div class="content-detailed-container"> 
23 
24	<h1>${.vars['reserved-article-title'].getData()}</h1> 
25 
26	<p> 
27		<#assign categories=articleHelper.getCategories() > 
28		<#if categories?has_content > 
29	        <b>categories:</b> 
30			<#list articleHelper.getCategories() as cat > 
31				${cat.getTitle(locale)}<#if cat?has_next>, </#if> 
32			</#list> 
33		</#if> 
34	</p> 
35 
36 
37	<div class="__ipd-factsheet-item-wrappeer"> 
38 
39	    <div class="textual-content-wrapper"> 
40	        <p class="description"> 
41				${description.getData()} 
42	        </p> 
43	        <div class="button-wrapper"> 
44				<#if button.getSiblings()?has_content > 
45					<#assign counter = 0 > 
46					<#list button.getSiblings() as cur_button > 
47						<#assign counter = counter + 1 > 
48						<#if (cur_button.getData() != "") && (cur_button.external_url.getData() != "") > 
49							<#assign url = cur_button.external_url.getData()! > 
50						</#if> 
51						<#if (cur_button.getData() != "") && (cur_button.media.getData() != "") > 
52							<#assign url = cur_button.media.getData()! > 
53						</#if> 
54 
55						<#if (url?? && validator.isNotNull(url)) > 
56							<#if (redirectw2l?? && redirectw2l != "") > 
57 
58								<#assign url = redirectw2l + "?path=" + url?url('UTF-8')> 
59 
60	                            <a class="cta-button-2" href="${url}" target="_blank">${cur_button.getData()}</a> 
61							<#else> 
62	                            <a class="cta-button-2" href="${url}" target="_blank">${cur_button.getData()}</a> 
63							</#if> 
64						</#if> 
65 
66						<#if (counter == 1) > 
67							<#assign firstUrl = url!"" > 
68						</#if> 
69						 
70						<br/> 
71						 
72					</#list> 
73				</#if> 
74	        </div> 
75	    </div> 
76 
77	</div> 
78	<br/> 
79 
80 
81 
82	<#if (direct_download_cutoff_date_Data > 0) > 
83		<#assign direct_download_cutoff_date_DateObj = dateUtil.newDate(direct_download_cutoff_date_Data) > 
84	</#if> 
85 
86	<#if (firstUrl != "") && (direct_download_cutoff_date_Data>0) && (dateUtil.compareTo(direct_download_cutoff_date_DateObj,dateUtil.newDate()) < 1) > 
87		<#if (firstUrl??) > 
88	    <script>window.location.href='${firstUrl}'</script> 
89		</#if> 
90	</#if> 
91 
92</div>