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#NIEUWS" at line 36, 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#NIEUWS" at line 36, 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<#assign showNoImage = true> 
23<#if carouselImage.getSiblings()?size gt 0> 
24	<#if carouselImage.getSiblings()?has_content> 
25		<div class="list-carousel-container"> 
26	    	<div class="list-carousel owl-carousel owl-theme"> 
27	    		<#list carouselImage.getSiblings() as cur_carouselImage> 
28					<#if validator.isNotNull(cur_carouselImage.carouselUrl.getData())> 
29						<#assign showNoImage = false> 
30						<div class="item-video"> 
31							<#assign url = cur_carouselImage.carouselUrl.getData()/> 
32							<#assign id ="" /> 
33							<#if url?split("?v=")[1]??> 
34							   <#assign id = url?split("?v=")[1]?split('&')[0]/> 
35							<#else> 
36							   <#assign id = url?split("embed/")[1]?split('?')[0]/> 
37							</#if> 
38							<iframe width="100%" height="480" src="//www.youtube.com/embed/${id}?rel=0&amp;enablejsapi=1&amp;v=${id}" frameborder="0" allowfullscreen=""></iframe>							 
39						</div> 
40					<#else> 
41						<#if validator.isNotNull(cur_carouselImage.getData())> 
42							<#assign showNoImage = false> 
43							<div class="item"> 
44							    <#if validator.isNotNull(cur_carouselImage.getData()) && validator.isNotNull(cur_carouselImage.credit.getData())> 
45							    	<span class="credits">Foto: ${cur_carouselImage.credit.getData()}</span> 
46							    </#if> 
47								<#if cur_carouselImage.getData()?? && cur_carouselImage.getData() != ""> 
48                                	<img data-fileentryid="${cur_carouselImage.getAttribute("fileEntryId")}" alt="${cur_carouselImage.getAttribute("alt")}" src="${cur_carouselImage.getData()}" /> 
49                                </#if> 
50							</div> 
51						</#if> 
52					</#if> 
53	    			 
54	    		</#list> 
55	    	</div> 
56	    </div> 
57	</#if> 
58</#if> 
59 
60 
61<#if showNoImage> 
62	<div class="phil-default-content-noimage news"></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	 
78	<div class="event-description"> 
79		${.vars['reserved-article-description'].data} 
80	</div> 
81	<div class="detail-content-container"> 
82		<div class="detail-content"> 
83		    <#if validator.isNotNull(description.getData())> 
84				<#assign fullContent = description.getData() />				 
85		    	${fullContent} 
86			</#if> 
87			<#if validator.isNotNull(readMoreLabel.getData())> 
88				<div class="read-more"> 
89					<a href="${readMoreLink.getData()}" target="${target}">${readMoreLabel.getData()}</a> 
90				</div> 
91			</#if> 
92		</div> 
93	</div> 
94</div> 
95 
96<#if carouselImage.getSiblings()?size gte 1> 
97	<script> 
98		jQuery(document).ready(function(){ 
99		    Liferay.Loader.require('owlcarousel', function (moduleName) { 
100				$('.list-carousel').owlCarousel({ 
101			        items:1,  
102			        margin:0, 
103			        nav:true, 
104			        video:true, 
105			        videoHeight: 480, 
106			        onChanged: onSlideChanged 
107			    }) 
108			}); 
109		    Liferay.on('SPAReady', function() { 
110				setTimeout(function(){ 
111		    		$('.list-carousel').trigger("refresh.owl.carousel"); 
112		    	},500) 
113		    }); 
114		    Liferay.on('endNavigate', function() { 
115		    	setTimeout(function(){ 
116		    		$('.list-carousel').trigger("refresh.owl.carousel"); 
117		    	},500) 
118				 
119		    }); 
120	    }) 
121	    function onSlideChanged(){ 
122	    	if(document.querySelectorAll('.list-carousel iframe').length > 0){ 
123	    		document.querySelectorAll('.list-carousel iframe')[0].contentWindow.postMessage(JSON.stringify({ event: 'command', func: 'stopVideo' }), '*'); 
124
125
126	</script> 
127</#if>