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		<div class="sharethis-container flex align-items-center no-amp"> 
72    		<span>Delen</span> 
73    		<div class="sharethis-inline-share-buttons pull-right"></div> 
74    	</div> 
75    	</#if> 
76	</div> 
77	<div class="event-description"> 
78		${.vars['reserved-article-description'].data} 
79	</div> 
80	<div class="detail-content-container"> 
81		<div class="detail-content"> 
82			<#if validator.isNotNull(description.getData())> 
83				 <#assign fullContent = description.getData() />				 
84		    	${fullContent} 
85			</#if> 
86			<div class="event-date event-detail-item"> 
87				<label>Tijdstip</label> 
88				<div> 
89					${dateUtil.getDate(startDate.getData()?date("yyyy-MM-dd"), "dd MMMM yyyy", locale)} van  
90					<#if startDate.getData() == endDate.getData()> 
91					 	${startDate.startTime.getData()} tot ${endDate.endTime.getData()} 
92					<#else> 
93						${startDate.startTime.getData()} tot 
94						${dateUtil.getDate(endDate.getData()?date("yyyy-MM-dd"), "dd MMMM yyyy", locale)}  ${endDate.endTime.getData()} 
95					</#if> 
96					 
97				</div> 
98			</div> 
99			<#if validator.isNotNull(address.getData())> 
100				<div class="event-address event-detail-item"> 
101					<label>Adres</label> 
102					<div>${address.getData()}</div> 
103				</div> 
104			</#if> 
105			<#if validator.isNotNull(programma.getData())> 
106				<div class="event-topics event-detail-item"> 
107					<label>Programma</label> 
108					<div>${programma.getData()}</div> 
109				</div> 
110			</#if> 
111			<#if validator.isNotNull(moreInformation.getData())> 
112				<div class="meer-info event-detail-item"> 
113					<label>Meer informatie</label> 
114					<div><a href="${moreInformation.getData()}">${moreInformation.getData()}</a></div> 
115				</div> 
116			</#if> 
117			<#if validator.isNotNull(readMoreLabel.getData())> 
118				<div class="read-more"> 
119					<a href="${readMoreLink.getData()}" target="${target}">${readMoreLabel.getData()}</a> 
120				</div> 
121			</#if> 
122		</div> 
123	</div> 
124</div> 
125 
126<#if carouselImage.getSiblings()?size gte 1> 
127	<script> 
128		jQuery(document).ready(function(){ 
129		    Liferay.Loader.require('owlcarousel', function (moduleName) { 
130				$('.list-carousel').owlCarousel({ 
131			        items:1,  
132			        margin:0, 
133			        nav:true, 
134			        video:true, 
135			        videoHeight: 480, 
136			        onChanged: onSlideChanged 
137			    }) 
138			}); 
139		    Liferay.on('SPAReady', function() { 
140				setTimeout(function(){ 
141		    		$('.list-carousel').trigger("refresh.owl.carousel"); 
142		    	},500) 
143		    }); 
144		    Liferay.on('endNavigate', function() { 
145				setTimeout(function(){ 
146		    		$('.list-carousel').trigger("refresh.owl.carousel"); 
147		    	},500) 
148		    }); 
149	    }) 
150	    function onSlideChanged(){ 
151	    	 if(document.querySelectorAll('.list-carousel iframe').length > 0){ 
152	    		document.querySelectorAll('.list-carousel iframe')[0].contentWindow.postMessage(JSON.stringify({ event: 'command', func: 'stopVideo' }), '*'); 
153
154
155	</script> 
156</#if>