Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing:
==> mainPageImage  [in template "20155#20195#NEWS" at line 18, column 20]

----
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: #assign bgImage = mainPageImage.getDa...  [in template "20155#20195#NEWS" at line 18, column 1]
----
1<#assign groupId = themeDisplay.getLayout().getGroupId() /> 
2<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
3<#assign ja = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data ) /> 
4<#assign resourceprimKey = ja.getResourcePrimKey() /> 
5<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
6<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", resourceprimKey) /> 
7<#assign tags = assetEntry.getTags() /> 
8<#assign displayDate = dateUtil.getDate(ja.getDisplayDate(),"dd/MM", locale) /> 
9<#assign displayYear = dateUtil.getDate(ja.getDisplayDate(),"yyyy", locale) /> 
10<#if locale.getLanguage() == "hu" > 
11	<#assign displayDate = dateUtil.getDate(ja.getDisplayDate(),"MMM d.", locale) /> 
12</#if> 
13<#assign portalPreferencesService = serviceLocator.findService("com.liferay.portal.kernel.service.PortalPreferencesLocalService") /> 
14<#assign preferences = portalPreferencesService.getPreferences(themeDisplay.getCompanyId(), 1) /> 
15<#assign homeURL = themeDisplay.getURLPortal() /> 
16<#assign searchPageLink = preferences.getValue("key-search-page-link", "") /> 
17<#assign searchPageLink = "${homeURL + searchPageLink}" /> 
18<#assign bgImage = mainPageImage.getData() /> 
19<#assign class = "" /> 
20<#if bgImage == "" > 
21	<#assign bgImage = image.getData() /> 
22</#if> 
23<#if bgImage == "" > 
24	<#assign bgImage = "/o/regens-theme/images/news_default_bg.jpg" /> 
25	<#assign class = "default" /> 
26</#if> 
27 
28<div class="content-with-parallax-jumbotron ${class}"> 
29	<div class="bg"></div> 
30	<div class="jumbotron container"> 
31		<h1>${.vars['reserved-article-title'].data}</h1> 
32		<div class="full-date"> 
33			<span class="year">${displayYear}</span><#if locale.getLanguage() == "hu">. <#else>/</#if><span class="month-day">${displayDate}</span> 
34		</div> 
35	</div> 
36	<div class="structure-content container"> 
37		<div class="abstract"> 
38			${abstract.getData()} 
39		</div> 
40		<div class="content"> 
41			${content.getData()} 
42		</div> 
43		<p> 
44			<#if tags?? > 
45				<#list tags as tag > 
46					<#assign tagName = tag.getName() /> 
47					<#if tagName.indexOf("--") > -1 > 
48						<#if locale.getLanguage() == "en"> 
49							<#assign tagName =  tagName.substring(0, tagName.indexOf("--")) /> 
50						<#else> 
51							<#assign tagNameInd = tagName.indexOf("--") + 2 /> 
52							<#assign tagName =  tagName.substring(tagNameInd) /> 
53						</#if> 
54					</#if> 
55					<div class="tag"> 
56						<a href="https://${homeURL}/search?p_p_id=3&amp;p_p_state=maximized&amp;_3_struts_action=/search/search&amp;_3_groupId=0&amp;_3_assetTagNames=${escapeTool.url(tag.getName())}"> 
57							<span>${tagName}</span> 
58						</a> 
59					</div> 
60				</#list> 
61			</#if> 
62		</p> 
63	</div> 
64</div> 
65 
66<style> 
67.bg { 
68	background-image: url('${bgImage}') !important; 
69
70#content { 
71	max-width: 100% !important; 
72	padding: 0 !important; 
73
74#main-content { 
75	max-width: 100% !important; 
76
77</style> 
78 
79<@liferay_util["html-top"] outputKey="news"> 
80	<meta property="og:title" content="${.vars['reserved-article-title'].data}"> 
81	<meta property="og:url" content="${themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()}"> 
82	<meta property="og:type" content="article"> 
83	<#if facebookImage?? > 
84		<meta property="og:image" content="${themeDisplay.getPortalURL() + facebookImage.getData()}"> 
85	<#elseif bgImage?? > 
86		<meta property="og:image" content="${themeDisplay.getPortalURL() + bgImage}"> 
87	</#if> 
88	<meta property="og:description" content="${abstract.getData()}"> 
89	<meta property="og:locale" content="${locale}"> 
90	<meta property="og:site_name" content="${themeDisplay.getSiteGroupName()}"> 
91</@>