Zajímá mě

Zajímá mě

Při zpracování šablony došlo k chybě.
The following has evaluated to null or missing:
==> assetRenderer.getURLDownload(themeDisplay)  [in template "20098#20124#1573040" at line 6, column 27]

----
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: downloadUrl = assetRenderer.getURLDow...  [in template "20098#20124#1573040" at line 6, column 13]
----
1<div class="mb-2"> 
2    <#if entries?has_content> 
3        <#list entries as curEntry> 
4            <#assign 
5            assetRenderer = curEntry.getAssetRenderer() 
6            downloadUrl = assetRenderer.getURLDownload(themeDisplay) 
7            dlFileEntry = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") 
8            file = dlFileEntry.getFileEntryByUuidAndGroupId(curEntry.getClassUuid(),curEntry.getGroupId()) 
9            fileExtension = file.getExtension() 
10            extensions = {"docx":"doc", "xlsx":"xls", "pdf":"pdf", "pptx":"ppt", "jpeg":"jpg"} 
11            fileExtension = extensions[fileExtension]!fileExtension 
12
13            <#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
14            <a href="${downloadUrl}" class="btn c-btn btn-secondary mb-2 mw-100 btn--without-arrow btn--with-icon icon--type-arrow-download icon--right justify-content-start"> 
15                <span class="d-flex align-items-center text-left"> 
16                    <span class="download-icon download-icon--${fileExtension}"></span> 
17                    <span class="text-break">${file.getTitle()}</span> 
18                    <#if curEntry.getClassName() == "com.liferay.document.library.kernel.model.DLFileEntry"> 
19                        <#assign dlFileEntry = dlAppService.getFileEntryByUuidAndGroupId(curEntry.getClassUuid(), curEntry.getGroupId())> 
20                    <#-- cusomFunctions is created by CustomFunctionsContributor --> 
21                        <#assign fSize = customFunctions.roundFileSize(dlFileEntry.getSize())> 
22                        <i class="font-size--small text-dark ml-2">(${fSize})</i> 
23                    </#if> 
24                </span> 
25            </a> 
26        </#list> 
27    </#if> 
28</div>