Er trad een fout op tijdens de verwerking van de sjabloon.
The following has evaluated to null or missing:
==> url?split("embed/")[1]  [in template "10157#10197#EVENT" at line 37, column 74]

----
Tip: It's the final [] step 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: #assign id = url?split("embed/")[1]?s...  [in template "10157#10197#EVENT" at line 37, column 60]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
2 
3<#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
4<#assign acceptCookies = false /> 
5<#if httpServletRequest.getCookies()??> 
6	<#assign userCookies = httpServletRequest.getCookies() /> 
7	<#list userCookies as cookie> 
8	    <#if cookie.getName()?starts_with("cookieStatus") && cookie.getValue() == "accept" > 
9			<#assign acceptCookies = true /> 
10		</#if> 
11	</#list> 
12</#if> 
13 <#assign articleId= "${.vars['reserved-article-id'].data}" /> 
14  
15 <#assign article = JournalArticleLocalService.getArticle(groupId,articleId) /> 
16 
17<#assign contentTitle= "${.vars['reserved-article-title'].data}" /> 
18<#assign target= "_self" /> 
19<#if readMoreLink.openInNewTab?? && getterUtil.getBoolean(readMoreLink.openInNewTab.getData())> 
20	<#assign target= "_blank" /> 
21</#if> 
22 
23<#assign showNoImage = true> 
24<#if carouselImage.getSiblings()?size gt 0> 
25	<#if carouselImage.getSiblings()?has_content> 
26		<div class="list-carousel-container"> 
27	    	<div class="list-carousel owl-carousel owl-theme"> 
28	    		<#list carouselImage.getSiblings() as cur_carouselImage> 
29					<#if validator.isNotNull(cur_carouselImage.carouselUrl.getData())> 
30						<#assign showNoImage = false> 
31						<div class="item-video"> 
32							<#assign url = cur_carouselImage.carouselUrl.getData()/> 
33							<#assign id ="" /> 
34							<#if url?split("?v=")[1]??> 
35							   <#assign id = url?split("?v=")[1]?split('&')[0]/> 
36							<#else> 
37							   <#assign id = url?split("embed/")[1]?split('?')[0]/> 
38							</#if> 
39							<iframe width="100%" height="480" src="//www.youtube.com/embed/${id}?rel=0&amp;enablejsapi=1&amp;v=${id}" frameborder="0" allowfullscreen=""></iframe> 
40						</div> 
41					<#else> 
42						<#if validator.isNotNull(cur_carouselImage.getData())> 
43							<#assign showNoImage = false> 
44							<div class="item"> 
45								<#if validator.isNotNull(cur_carouselImage.getData()) && validator.isNotNull(cur_carouselImage.credit.getData())> 
46							    	<span class="credits">Foto: ${cur_carouselImage.credit.getData()}</span> 
47							    </#if> 
48								<#if cur_carouselImage.getData()?? && cur_carouselImage.getData() != ""> 
49                                	<img data-fileentryid="${cur_carouselImage.getAttribute("fileEntryId")}" alt="${cur_carouselImage.getAttribute("alt")}" src="${cur_carouselImage.getData()}" /> 
50                                </#if> 
51							</div> 
52						</#if> 
53					</#if> 
54	    			 
55	    		</#list> 
56	    	</div> 
57	    </div> 
58	</#if> 
59</#if> 
60 
61<#if showNoImage> 
62	<div class="phil-default-content-noimage events"></div> 
63</#if> 
64 
65<div class="event-content phil-default-content contrast-bg-color"> 
66	<div class="social-icon-row"> 
67		<div class="publish-date"> 
68			<i class="fa fa-clock-o"></i>Geplaatst op ${dateUtil.getDate(article.getDisplayDate(), "dd MMMM yyyy", locale)} 
69		</div> 
70		<#if acceptCookies> 
71		<!-- social media share icons --> 
72					<#assign currentCompleteURL=portalUtil.getCurrentCompleteURL(httpServletRequest) /> 
73						<div class="social-links"> 
74							<div class="social-share"> 
75								<ul class="social-media-icons"> 
76									<li> 
77										<a href="https://www.linkedin.com/shareArticle?mini=true&url=${currentCompleteURL}" rel="noopener" target="_blank" class="linkedin" title="Deel op LinkedIn"> 
78											<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg> 
79										</a> 
80									</li> 
81									<li> 
82										<a href="https://twitter.com/intent/tweet?text=${contentTitle}&url=${currentCompleteURL}" rel="noopener" target="_blank" class="twitter" title="Deel op twitter"> 
83											<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg> 
84										</a> 
85									</li>								 
86									<li> 
87										<a href="https://www.facebook.com/sharer/sharer.php?u=${currentCompleteURL}" target="_blank" title="Deel via Facebook" class="facebook" title="Deel op facebook'"> 
88											<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg> 
89										</a> 
90									</li> 
91								</ul> 
92							</div> 
93						</div> 
94					<!-- End social media share icons --> 
95    	</#if> 
96	</div> 
97	<div class="event-description"> 
98		${.vars['reserved-article-description'].data} 
99	</div> 
100	<div class="detail-content-container"> 
101		<div class="detail-content"> 
102			<#if validator.isNotNull(description.getData())> 
103				 <#assign fullContent = description.getData() />				 
104		    	${fullContent} 
105			</#if> 
106			<div class="event-date event-detail-item"> 
107				<label>Tijdstip</label> 
108				<div> 
109					${dateUtil.getDate(startDate.getData()?date("yyyy-MM-dd"), "dd MMMM yyyy", locale)} van  
110					<#if startDate.getData() == endDate.getData()> 
111					 	${startDate.startTime.getData()} tot ${endDate.endTime.getData()} 
112					<#else> 
113						${startDate.startTime.getData()} tot 
114						${dateUtil.getDate(endDate.getData()?date("yyyy-MM-dd"), "dd MMMM yyyy", locale)}  ${endDate.endTime.getData()} 
115					</#if> 
116					 
117				</div> 
118			</div> 
119			<#if validator.isNotNull(address.getData())> 
120				<div class="event-address event-detail-item"> 
121					<label>Adres</label> 
122					<div>${address.getData()}</div> 
123				</div> 
124			</#if> 
125			<#if validator.isNotNull(programma.getData())> 
126				<div class="event-topics event-detail-item"> 
127					<label>Programma</label> 
128					<div>${programma.getData()}</div> 
129				</div> 
130			</#if> 
131			<#if validator.isNotNull(moreInformation.getData())> 
132				<div class="meer-info event-detail-item"> 
133					<label>Meer informatie</label> 
134					<div><a href="${moreInformation.getData()}">${moreInformation.getData()}</a></div> 
135				</div> 
136			</#if> 
137			<#if validator.isNotNull(readMoreLabel.getData())> 
138				<div class="read-more"> 
139					<a href="${readMoreLink.getData()}" target="${target}">${readMoreLabel.getData()}</a> 
140				</div> 
141			</#if> 
142		</div> 
143	</div> 
144</div> 
145 
146<#if carouselImage.getSiblings()?size gte 1> 
147	<script> 
148		jQuery(document).ready(function(){ 
149		    Liferay.Loader.require('owlcarousel', function (moduleName) { 
150				$('.list-carousel').owlCarousel({ 
151			        items:1,  
152			        margin:0, 
153			        nav:true, 
154			        video:true, 
155			        videoHeight: 480, 
156			        onChanged: onSlideChanged 
157			    }) 
158			}); 
159		    Liferay.on('SPAReady', function() { 
160				setTimeout(function(){ 
161		    		$('.list-carousel').trigger("refresh.owl.carousel"); 
162		    	},500) 
163		    }); 
164		    Liferay.on('endNavigate', function() { 
165				setTimeout(function(){ 
166		    		$('.list-carousel').trigger("refresh.owl.carousel"); 
167		    	},500) 
168		    }); 
169	    }) 
170	    function onSlideChanged(){ 
171	    	 if(document.querySelectorAll('.list-carousel iframe').length > 0){ 
172	    		document.querySelectorAll('.list-carousel iframe')[0].contentWindow.postMessage(JSON.stringify({ event: 'command', func: 'stopVideo' }), '*'); 
173
174
175	</script> 
176</#if>