null A bőrcsomósodáskórral kapcsolatos kereskedelmi tudnivalók

Hiba jelentkezett a sablon feldolgozása során.
The following has evaluated to null or missing:
==> cur_relatedContentNews  [in template "10155#10195#11934" at line 262, column 71]

----
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 allRelatedContentNews = allRe...  [in template "10155#10195#11934" at line 262, column 13]
----
1<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] /> 
2<@liferay_theme["defineObjects"] /> 
3<#assign originalLocale = .locale /> 
4<#assign dateFormat = "yyyy. MMMM d, EEEE" /> 
5 
6<#assign publish_date = .vars['reserved-article-display-date'].data /> 
7<#setting locale = localeUtil.getDefault() /> 
8<#assign publish_date = publish_date?datetime("EEE, d MMM yyyy HH:mm:ss Z") /> 
9<#assign publish_date = publish_date?string["yyyy. MMMM d, EEEE"] /> 
10<#setting locale = originalLocale /> 
11<#assign journalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
12<#assign journalArticle=journalArticleService.getLatestArticle(getterUtil.getLong(groupId), getterUtil.getString(.vars["reserved-article-id"].data)) /> 
13<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
14<#assign assetEntry = assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey())> 
15<#assign newsLocalService = serviceLocator.findService("hu.webtown.liferay.portlet.nebih.news.service.NewsLocalService") /> 
16<#assign dlAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") /> 
17 
18<#assign relatedContentNews = newsLocalService.getDirectRelatedContent(assetEntry.getEntryId()?long, "HU-hu")/> 
19<#assign allRelatedContentNews = [] /> 
20 
21<div class="row"> 
22 
23    <div class="col-md-8"> 
24        <article class="article-details"> 
25            <h2>${title.getData()}</h2> 
26 
27            <div class="article-image"> 
28                <img src="${bigimg.getData()}" alt="" aria-hidden="true"/> 
29            </div> 
30 
31            <#if (datebool??) && getterUtil.getBoolean(datebool.getData()) > 
32                <date>${publish_date}</date> 
33            </#if> 
34 
35            <p class="lead" style="text-align: left !important;">${lead.getData()}</p> 
36 
37            ${text.getData()} 
38 
39            <br/> 
40 
41            <#assign service = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") > 
42 
43            <#assign gid = getterUtil.getLong(themeDisplay.getScopeGroupId()) > 
44            <#assign prefix = "/documents/" + groupId + "/" > 
45 
46            <#assign piccounter = 0 > 
47 
48            <#if galtext.getSiblings()?has_content> 
49                <#list galtext.getSiblings() as pic > 
50                    <#if pic.getData()?has_content ||  pic.img.getData()?has_content> 
51 
52                        <#assign newgallery = 1 > 
53 
54                        <#if pic.img??> 
55                            <#assign path = pic.img.getData()?replace(prefix, "")> 
56                            <#assign indexSlash = path?index_of('/')> 
57 
58                            <#assign folder = path?keep_before('/')> 
59 
60                            <#assign piccountercheck = 0> 
61 
62                            <#list galtext.getSiblings() as piccheck> 
63                                <#if piccounter gt piccountercheck > 
64                                    <#assign pathcheck = piccheck.img.getData()?replace(prefix, "") > 
65                                    <#assign indexSlashcheck = pathcheck?index_of('/') > 
66 
67                                    <#assign foldercheck = pathcheck?keep_before('/')> 
68                                    <#if foldercheck == folder> 
69                                        <#assign newgallery = 0 > 
70                                    </#if> 
71                                </#if> 
72                                <#assign piccountercheck = piccountercheck + 1 > 
73                            </#list> 
74 
75                        <#else> 
76                            <#assign newgallery = 0 > 
77                        </#if> 
78 
79                        <#if newgallery == 1 > 
80                            <h4>${pic.getData()}</h4> 
81                            <#assign fid = getterUtil.getLong(folder) > 
82                            <#assign files = service.getFileEntries(gid, fid, -1, -1, null)> 
83                            <#assign files_sort_tmp = service.getFileEntries(gid, fid, -1, -1, null)> 
84                            <#assign maxNumLengthToMod = 0 > 
85 
86                            <#list files_sort_tmp as doc_tmp_sort> 
87                                <#assign title_mod = doc_tmp_sort.getTitle() > 
88                                <#assign beg = -1 > 
89                                <#assign last = -1 > 
90                                <#assign pos = 0 > 
91                                <#assign titleLen = title_mod?length - 1 > 
92 
93                                <#list 0..titleLen as chrIndex> 
94 
95                                    <#assign chrIndexInc = chrIndex + 1> 
96                                    <#assign chr = title_mod?substring(chrIndex, chrIndexInc)> 
97 
98 
99                                    <#if chr == '0' || chr == '1' || chr == '2' || chr == '3' || chr == '4' || chr == '5' || chr == '6' || chr == '7' || chr == '8' || chr == '9' > 
100                                        <#if beg == -1 > 
101                                            <#assign beg = pos > 
102                                        </#if> 
103                                        <#assign last = pos > 
104                                    <#elseif beg != -1 > 
105                                        <#assign leng = pos - beg > 
106 
107                                        <#if maxNumLengthToMod < leng > 
108                                            <#assign maxNumLengthToMod = leng > 
109                                        </#if> 
110                                        <#assign beg = -1 > 
111                                        <#assign last = -1 > 
112                                    </#if> 
113                                    <#assign pos = pos + 1 > 
114                                </#list> 
115 
116                                <#if beg != -1 > 
117                                    <#assign leng = pos - beg > 
118 
119                                    <#if maxNumLengthToMod < leng > 
120                                        <#assign maxNumLengthToMod = leng > 
121                                    </#if> 
122                                </#if> 
123                            </#list> 
124 
125                            <#list files_sort_tmp as doc_tmp_sort> 
126                                <#assign title_mod = doc_tmp_sort.getTitle()> 
127                                <#assign const_title_mod = title_mod> 
128                                <#assign beg=-1> 
129                                <#assign last=-1> 
130                                <#assign pos=0> 
131                                <#assign titleLen = const_title_mod?length - 1 > 
132 
133 
134                                <#list 0..titleLen as chrIndex> 
135                                    <#assign chrIndexInc = chrIndex + 1 > 
136                                    <#assign chr = const_title_mod?substring(chrIndex, chrIndexInc) > 
137                                    <#if chr == '0' || chr == '1' || chr == '2' || chr == '3' || chr == '4' || chr == '5' || chr == '6' || chr == '7' || chr == '8' || chr == '9' > 
138                                        <#if beg == -1 > 
139                                            <#assign beg = pos > 
140                                        </#if> 
141                                        <#assign last = pos > 
142                                    <#elseif beg != -1 && (pos - beg) < maxNumLengthToMod > 
143                                        <#assign leng = pos - beg > 
144                                        <#assign prePaddingLen = maxNumLengthToMod - ( leng +1 ) > 
145                                        <#assign newNum = '' > 
146                                        <#list 0..prePaddingLen as i > 
147                                            <#assign newNum = newNum + '0' > 
148                                        </#list> 
149                                        <#assign title_mod = title_mod?substring(0, beg) + newNum + title_mod?substring(beg) > 
150                                        <#assign pos = pos + prePaddingLen + 1 > 
151                                        <#assign beg = -1 > 
152                                        <#assign last = -1 > 
153                                    </#if> 
154 
155                                    <#assign pos = pos + 1  > 
156 
157                                </#list> 
158 
159                                <#assign last = last + 1 > 
160 
161                                <#if beg != -1 && (last - beg) < maxNumLengthToMod > 
162                                    <#assign leng = last - beg> 
163                                    <#assign newNum = '' > 
164                                    <#assign prePaddingLen = maxNumLengthToMod - ( leng + 1 ) > 
165                                    <#list 0..prePaddingLen as i > 
166                                        <#assign newNum = newNum + '0'> 
167                                    </#list> 
168                                    <#assign title_mod = title_mod?substring(0, beg) + newNum + title_mod?substring(beg) > 
169                                </#if> 
170                                ${doc_tmp_sort.setTitle(title_mod)} 
171                            </#list> 
172 
173                            <#assign files_sort_tmp = files_sort_tmp?sort_by( "title") > 
174 
175                            <#list files_sort_tmp as doc_tmp_sort > 
176                                <#list files as doc > 
177                                    <#if doc.getUuid() == doc_tmp_sort.getUuid() > 
178                                        ${doc_tmp_sort.setTitle(doc.getTitle())} 
179                                        <#break> 
180                                    </#if> 
181                                </#list> 
182                            </#list> 
183 
184                            <#assign files = files_sort_tmp > 
185 
186                            <div id="gallery-${piccounter}" style="display:none;"> 
187 
188                                <#assign i = 0 > 
189                                <#if galtext.getSiblings()?has_content > 
190                                    <#list files as doc> 
191                                        <#assign uet = httpUtil.encodeURL(htmlUtil.unescape(doc.getTitle())) > 
192 
193                                        <#assign i = i + 1 > 
194                                        <img 
195                                                alt="${doc.getDescription()}" 
196                                                src="/documents/${gid}/${fid}/${uet}" 
197                                                data-image="/documents/${gid}/${fid}/${uet}" 
198                                                data-description="${doc.getDescription()}" /> 
199                                    </#list> 
200                                </#if> 
201 
202                            </div> 
203                            <br> 
204 
205                            <script type="text/javascript"> 
206                                ug_jquery11(document).ready(function() { 
207                                    ug_jquery11("#gallery-${piccounter}").unitegallery({ 
208                                        theme_enable_fullscreen_button: false, //show, hide the theme fullscreen button. The position in the theme is constant 
209                                        slider_enable_zoom_panel: false, 
210                                        theme_enable_play_button: false, //show, hide the theme play button. The position in the theme is constant 
211                                        theme_enable_hidepanel_button: true,//show, hide the hidepanel button 
212                                        theme_enable_text_panel: true, //enable the panel text panel. 
213                                        gallery_background_color: "#FFFFFF", 
214                                        slider_textpanel_bg_color:"#FFFFFF", 
215                                        slider_loader_color:"white", 
216                                        slider_progressbar_color:"#000000", 
217                                        slider_textpanel_title_color:"black", 
218                                        slider_textpanel_desc_color:"black", 
219                                        slider_progresspie_color1: "#4A4A4A", //the first color of the progress pie 
220                                        slider_progresspie_color2: "#1A1A1A", //progress pie second color 
221                                        thumb_border_color: "#ffffff", 
222                                        thumb_overlay_color: "#ffffff", 
223                                        strippanel_background_color: "white", 
224                                        theme_enable_hidepanel_button: false, 
225                                        theme_text_padding_left: 20,            //left padding of the text in the textpanel 
226                                        theme_text_padding_right: 5,            //right paddin of the text in the textpanel 
227                                        theme_text_align: "center",             //left, center, right - the align of the text in the textpanel 
228                                        theme_text_type: "title",               //title, description - text that will be shown on the text panel, title or description 
229                                        slider_textpanel_enable_description: true, 
230                                        slider_textpanel_enable_bg: true, 
231                                        slider_textpanel_always_on: false, 
232                                        slider_scale_mode: "fit", //fit: scale down and up the image to always fit the slider 
233                                        //down: scale down only, smaller images will be shown, don't enlarge images (scale up) 
234                                        //fill: fill the entire slider space by scaling, cropping and centering the image 
235                                        slider_item_padding_bottom: 50, //padding bottom of the slider item 
236                                    }); 
237                                }); 
238                            </script> 
239 
240                        </#if> 
241 
242                        <#assign piccounter = piccounter + 1 > 
243                    </#if> 
244                </#list> 
245            </#if> 
246 
247 
248        </article> 
249    </div> 
250 
251    <div class="col-md-4"> 
252 
253        <#assign has_relatedContentNews = (relatedContentNews?size > 0) /> 
254 
255        <#if has_relatedContentNews> 
256            <h2 class="asset-links-title">Kapcsolódó tartalmak</h2> 
257        </#if> 
258 
259        <#assign counter = 0 > 
260        <#list relatedContentNews as cur_relatedContentNews> 
261 
262            <#assign allRelatedContentNews = allRelatedContentNews + [cur_relatedContentNews.getAssetEntryId()?long] /> 
263 
264            <#if counter < 2 > 
265                <a href="${cur_relatedContentNews.getUrlTitle()}" class="nebih-article-related"> 
266 
267                    <article class="article-related"> 
268                        <div class="article-image"> 
269                            <img src="${cur_relatedContentNews.getBigimg()}" alt="${cur_relatedContentNews.getTitle()}"/> 
270                        </div> 
271                        <div class="article-content"> 
272                            <date>${dateUtil.getDate(cur_relatedContentNews.getPublishDate(), dateFormat, locale)}</date> 
273                            <h2>${cur_relatedContentNews.getTitle()}</h2> 
274                            <p class="lead">${cur_relatedContentNews.getLead()}</p> 
275                            <button>Tovább &gt;</button> 
276                        </div> 
277                    </article> 
278                </a> 
279            <#else> 
280                <a href="${cur_relatedContentNews.getUrlTitle()}" class="nebih-article-related"> 
281                    <article class="article-related"> 
282                        <div class="article-content"> 
283                            <date>${dateUtil.getDate(cur_relatedContentNews.getPublishDate(), dateFormat, locale)}</date> 
284                            <h2>${cur_relatedContentNews.getTitle()}</h2> 
285                            <button>Tovább &gt;</button> 
286                        </div> 
287                    </article> 
288                </a> 
289            </#if> 
290            <#assign counter = counter + 1 > 
291        </#list> 
292 
293 
294        <#if !has_relatedContentNews> 
295 
296            <h2 class="news-title-display-page">Friss hírek</h2> 
297 
298            <#assign newsList = newsLocalService.getFreshNews(assetEntry.getEntryId()?long, "HU-hu", allRelatedContentNews) /> 
299 
300            <#list newsList as cur_newsList> 
301                <div class="nebih-article-small"> 
302                    <article class="article-small"> 
303                        <div class="article-image"> 
304                            <img src="${cur_newsList.getSmallimg()}" alt="" aria-hidden="true"/> 
305                        </div> 
306 
307                        <date>${dateUtil.getDate(cur_newsList.getPublishDate(), dateFormat, locale)}</date> 
308                        <h2>${cur_newsList.getTitle()}</h2> 
309                        <p class="lead">${cur_newsList.getLead()}</p> 
310 
311 
312                        <a href="${cur_newsList.getUrlTitle()}"> 
313                            Tovább &gt; 
314                        </a> 
315                        <br/> 
316                        <br/> 
317                    </article> 
318                </div> 
319 
320            </#list> 
321 
322 
323        </#if> 
324    </div> 
325</div>