Anmelden

Breadcrumb

Asset-Herausgeber

Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing:
==> assetRenderer.getIconPath [in template "10154#10194#46566" at line 152, column 65]
----
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 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: ${assetRenderer.getIconPath(renderReq... [in template "10154#10194#46566" at line 152, column 63]
----
1<div class="assets asset-theme-1"> 
2 <#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"] /> 
3 <#if entries?has_content> 
4 <#list entries as entry> 
5 <#assign 
6 entry = entry 
7 
8 assetRenderer = entry.getAssetRenderer() 
9 
10 entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) 
11 
12 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, entry, !stringUtil.equals(assetLinkBehavior, "showFullContent")) 
13 /> 
14 <!-- entry --> 
15 <#if entry.getClassNameId() == 10109> 
16 
17 <#if entry.getAssetRenderer()?? && assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry)?? && saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent())?? > 
18 <#assign assetRenderer = entry.getAssetRenderer()?? /> 
19 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
20 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
21 <#assign untertitel = docXml.valueOf("//dynamic-element[@name='Untertitel']/dynamic-content[@language-id='${locale}']/text()")?replace("</?[^>]+(>|$)", "", "r") /> 
22 <#assign teaser_text = docXml.valueOf("//dynamic-element[@name='Teaser_Text']/dynamic-content[@language-id='${locale}']/text()")?replace("</?[^>]+(>|$)", "", "r") /> 
23 <#assign artikel_text = docXml.valueOf("//dynamic-element[@name='Page'][1]/dynamic-content[@language-id='${locale}']/text()")?replace("</?[^>]+(>|$)", "", "r") /> 
24 <#assign bildJson = docXml.valueOf("//dynamic-element[@name='Page'][1]/dynamic-element[@name='Bild']/dynamic-content[@language-id='${locale}']/text()") /> 
25 <#assign alternativtext_bild = docXml.valueOf("//dynamic-element[@name='Page'][1]/dynamic-element[@name='Alternativtext_Bild']/dynamic-content[@language-id='${locale}']/text()") /> 
26 <#assign bildtext = docXml.valueOf("//dynamic-element[@name='Page'][1]/dynamic-element[@name='Bildtext']/dynamic-content[@language-id='${locale}']/text()") /> 
27 <#assign bildausrichtung = docXml.valueOf("//dynamic-element[@name='Page'][1]/dynamic-element[@name='Bildausrichtung']/dynamic-content[@language-id='${locale}']/text()") /> 
28 <#assign lightbox_anzeigen = docXml.valueOf("//dynamic-element[@name='Page'][1]/dynamic-element[@name='lightbox_anzeigen']/dynamic-content[@language-id='${locale}']/text()") /> 
29 
30 <#-- Start Ergänzung Gaul 21.04.2020 zur Anzeige von PDFs --> 
31 <#assign pdfDocumentJson = docXml.valueOf("//dynamic-element[@name='pdfDocument']/dynamic-content[@language-id='${locale}']/text()") /> 
32 
33 <#-- Get image path --> 
34 <#if pdfDocumentJson?has_content> 
35 <#assign 
36 pdfDocumentJson = jsonFactoryUtil.looseDeserialize(pdfDocumentJson) 
37 pdfDocument = "/documents/" + pdfDocumentJson.groupId + "/" + pdfDocumentJson.uuid + "?documentThumbnail=1" 
38 /> 
39 <#else> 
40 <#assign pdfDocument = "" /> 
41 </#if> 
42 <#-- Ende Ergänzung Gaul 21.04.2020 zur Anzeige von PDFs --> 
43 
44 <#-- Get image path --> 
45 <#if bildJson?has_content> 
46 <#assign 
47 bildJson = jsonFactoryUtil.looseDeserialize(bildJson) 
48 bild = "/documents/" + bildJson.groupId + "/" + bildJson.uuid + "?imageThumbnail=3" 
49 /> 
50 <#else> 
51 <#assign bild = "" /> 
52 </#if> 
53 
54 <div class="asset asset_news"> 
55 
56 <#-- Start Ergänzung Gaul 21.04.2020 zur Anzeige von PDFs --> 
57 <#--<a href="${viewURL}">--> 
58 <#-- Ende Ergänzung Gaul 21.04.2020 zur Anzeige von PDFs --> 
59 
60 <#if bild?has_content> 
61 <!-- bild content ${locale} --> 
62 <#if bildausrichtung = "left"> 
63 <!-- bild content left --> 
64 <div class="asset_image left"> 
65 <img src="${bild}" alt="${alternativtext_bild}" title="${alternativtext_bild}" /> 
66 </div> 
67 <#else> 
68 <#if bildausrichtung = "right"> 
69 <!-- bild content right --> 
70 <div class="asset_image right"> 
71 <img src="${bild}" alt="${alternativtext_bild}" title="${alternativtext_bild}" /> 
72 </div> 
73 <#else> 
74 <!-- bildausrichtung ist nicht definiert --> 
75 </#if> 
76 </#if> 
77 <#-- Start Ergänzung Gaul 19.04.2020 zur Anzeige von PDFs --> 
78 <#else> 
79 <#if pdfDocument?has_content> 
80 <div class="asset_image left"> 
81 <img src="${pdfDocument}&documentThumbnail=1" style="border: 1px solid grey;" /> 
82 </div> 
83 </#if> 
84 
85 <#-- Ende Ergänzung Gaul 19.04.2020 zur Anzeige von PDFs --> 
86 </#if> 
87 
88 <#-- Start Ergänzung Gaul 21.04.2020 zur Anzeige von PDFs --> 
89 <#--</a>--> 
90 <#-- Ende Ergänzung Gaul 21.04.2020 zur Anzeige von PDFs --> 
91 
92 <#if bildausrichtung = "left"> 
93 <div class="asset_text right"> 
94 <#elseif bildausrichtung = "right"> 
95 <div class="asset_text left"> 
96 <#else> 
97 <div class="asset_text"> 
98 </#if> 
99 
100 <h4 class="asset_headline"><#if Untertitel??><#if untertitel?has_content><span class="asset_subheadline">${untertitel}</span></#if></#if>${entry.getTitle(locale)}</h4> 
101 
102 <#assign teaser_text_length = teaser_text?length> 
103 <#assign artikel_text_length = artikel_text?length> 
104 <#assign maxLength = 300> 
105 
106 <#if teaser_text?has_content> 
107 <#if teaser_text_length < maxLength> 
108 <div class="text">${teaser_text}</div> 
109 <#else> 
110 <div class="text">${teaser_text?substring(0,maxLength-1)}...</div> 
111 </#if> 
112 <#else> 
113 <#if artikel_text_length < maxLength> 
114 <div class="text">${artikel_text}</div> 
115 <#else> 
116 <div class="text">${artikel_text?substring(0,maxLength-1)}...</div> 
117 </#if> 
118 </#if> 
119 
120 <#assign viewInContext = false> 
121 
122 <#if assetLinkBehavior??> 
123 <#if assetLinkBehavior == "viewInPortlet"> 
124 <#assign viewInContext = true> 
125 </#if> 
126 </#if> 
127 ${request.setAttribute("view.jsp-showIconLabel", false)} 
128 
129 <a class="anc_more" href="${viewURL}"><@liferay.language key="read-more" /></a> 
130 
131 
132 
133 </div> 
134 <div class="clear"></div> 
135 </div> 
136 <#else> 
137 <p>This Content produces a bug!!! Please contact the Administrator!</p> 
138 </#if> 
139 <#else> 
140 <#assign assetRenderer = entry.getAssetRenderer() /> 
141 <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
142 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
143 
144 <#if assetLinkBehavior??> 
145 <#if assetLinkBehavior != "showFullContent"> 
146 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
147 </#if> 
148 </#if> 
149 <div class="asset-abstract"> 
150 
151 <h3 class="asset-title"> 
152 <a href="${viewURL}"><img alt="" src="${assetRenderer.getIconPath(renderRequest)}" />${entryTitle}</a> 
153 </h3> 
154 
155 <div class="asset-content"> 
156 
157 <div class="asset-summary"> 
158 ${htmlUtil.escape(assetRenderer.getSummary(locale))} 
159 
160 <a href="${viewURL}"><@liferay.language key="read-more" /><span class="hide-accessible"><@liferay.language key="about" />${entryTitle}</span> &raquo;</a> 
161 </div> 
162 </div> 
163 </div> 
164 
165 </#if> 
166 
167 
168 
169 </#list> 
170 <#else> 
171 <p>Sorry, there are no entries to display!</p> 
172 </#if> 
173 </div>