Došlo je do pogreške prilikom obrade predloška.
The following has evaluated to null or missing:
==> Link.DocumentInternal  [in template "20116#20152#BKS-INDEXBOX-HR" at line 18, column 18]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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: #elseif Link.DocumentInternal.getData...  [in template "20116#20152#BKS-INDEXBOX-HR" at line 18, column 9]
	- Reached through: @ait_contentreplacer["replace-content"]  [in template "20116#20152#BKS-INDEXBOX-HR" at line 7, column 1]
----
1<#assign 
2	ait_contentreplacer = taglibLiferayHash["/META-INF/ait-contentreplacer.tld"] 
3	 
4	DLFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') 
5/> 
6 
7<@ait_contentreplacer["replace-content"]> 
8 
9	<#assign 
10		linkUrl = '' 
11		linkTitle = languageUtil.format(locale, "go-to-x", htmlUtil.stripHtml(htmlUtil.extractText(Heading.getData())), false) 
12		linkParams = '' 
13		linkText = languageUtil.get(locale, "bks-default-link-text") 
14	/> 
15 
16	<#if Link.LinkInternal.getData()?? && Link.LinkInternal.getData() != ""> 
17		<#assign linkUrl = Link.LinkInternal.getFriendlyUrl()/> 
18	<#elseif Link.DocumentInternal.getData()?? && Link.DocumentInternal.getData() != ""> 
19		<#assign linkUrl = Link.DocumentInternal.getData()/> 
20		<#assign linkParams = 'target="_blank" rel="external"'/> 
21	<#elseif Link.LinkExternal.getData()?? && Link.LinkExternal.getData() != ""> 
22		<#assign linkUrl = Link.LinkExternal.getData()/> 
23		<#assign linkParams = 'target="_blank" rel="external"'/> 
24	</#if> 
25	<#if Link.LinkText?? && Link.LinkText.getData()?? && Link.LinkText.getData() != ""> 
26		<#assign linkText = Link.LinkText.getData()/> 
27	</#if> 
28 
29 
30	<div class="card card-index"> 
31		<div class="card-index-content"> 
32			<#if Image.getData()?? && Image.getData() != ""> 
33				<#assign 
34					altText = Image.getAttribute("alt") 
35				/> 
36				<#if !Image.getAttribute("alt")?? || Image.getAttribute("alt") == ""> 
37					<#assign 
38						altText = getDLFileEntryAltText(Image) 
39					/> 
40				</#if> 
41				<div class="card-index-image aspect-ratio"> 
42					<img class="aspect-ratio-item aspect-ratio-item-top-center" data-fileentryid="${Image.getAttribute("fileEntryId")}" alt="${altText}" src="${Image.getData()}" /> 
43				</div> 
44			</#if> 
45 
46            <#if Heading.getType() != "text"> 
47                ${Heading.getData()} 
48            <#else> 
49				<h2>${Heading.getData()}</h2> 
50            </#if> 
51			<p>${Content.getData()}</p> 
52		</div> 
53		<#if linkUrl != ""> 
54			<div class="card-index-footer"> 
55				<a class="btn btn-secondary" href="${linkUrl}" title="${linkTitle}" ${linkParams}>${linkText} <svg aria-hidden="true" class="lexicon-icon scale-lexicon-icon icon-btn-right"><use xlink:href="#icn_arrow-right" /></svg></a> 
56			</div> 
57		</#if> 
58	</div> 
59 
60	<#function getDLFileEntryAltText Image> 
61		<#if Image.getAttribute("id")?? && Image.getAttribute("id") != ""> 
62			<#return ""> 
63		<#else> 
64			<#assign dlFileEntry = getDLFileEntry(Image) > 
65			<#return dlFileEntry.getDescription()/> 
66		</#if>	 
67	</#function> 
68 
69	<#function getDLFileEntry fileEntry> 
70		<#assign dlFileEntry = ''> 
71		<#if fileEntry.getAttribute("fileEntryId")?? && fileEntry.getAttribute("fileEntryId") != ""> 
72			<#assign 
73				dlFileEntry = DLFileEntryService.getFileEntry(fileEntry.getAttribute("fileEntryId")?number) 
74			/> 
75		<#else> 
76			<#assign 
77				dlFileEntry = getDLFileEntryFromUrl(fileEntry.getData()) 
78			/> 
79		</#if> 
80		<#return dlFileEntry> 
81	</#function> 
82 
83	<#function getDLFileEntryFromUrl fileUrl> 
84		<#assign counter = 0 > 
85		<#list "${fileUrl}"?split("/") as pathSegemtent> 
86			<#if counter == 2> 
87				<#assign groupId = pathSegemtent?number > 
88			</#if> 
89			<#if counter == 5> 
90				<#assign subCounter = 0 > 
91				<#list "${pathSegemtent}"?split("?") as subSegemtent> 
92					<#if subCounter == 0> 
93						<#assign uuId = subSegemtent > 
94					</#if> 
95					<#assign subCounter = subCounter+1 > 
96				</#list> 
97			</#if> 
98			<#assign counter = counter+1 > 
99		</#list> 
100 
101		<#assign dlFileEntry = DLFileEntryService.getFileEntryByUuidAndGroupId(uuId,groupId) > 
102 
103		<#return dlFileEntry> 
104	</#function> 
105 
106</@>