The following has evaluated to null or missing: ==> VideoURL.getData()?split("?v=")[1] [in template "20100#20127#3623855" at line 14, column 86] ---- Tip: It's the final [] step that caused this error, not those before it. ---- 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: ${VideoURL.getData()?split("?v=")[1]?... [in template "20100#20127#3623855" at line 14, column 84] ----
1<#setting locale = locale>
2<#assign
3originalDate = dateUtil.parseDate("EEE, d MMM yyyy HH:mm:ss Z", .vars['reserved-article-display-date'].data, localeUtil.getDefault())
4hourString = originalDate?string["dd MMM yyyy "]
5journalArticleAssetCategoryUtil = serviceLocator.findService("com.neutrica.smotai.clubs.commons.util.JournalArticleAssetCategoryUtil")
6vocabulary = 24187590
7categories = journalArticleAssetCategoryUtil.getJournalArticleAssetCategoriesFromVocabulary(groupId, .vars['reserved-article-id'].data, vocabulary)
8/>
9
10<div class="top-part" data-video="${VideoURL.getData()}">
11 <#if (ThumbnailImage.getData())?has_content>
12 <img loading="lazy" class="photo-background" src="${ThumbnailImage.getData()}" alt="${ThumbnailImage.getAttribute("alt")}" />
13 <#elseif (VideoURL.getData())?has_content>
14 <img loading="lazy" class="photo-background" src="https://img.youtube.com/vi/${VideoURL.getData()?split("?v=")[1]?split("&ab")[0]}/sddefault.jpg" />
15 </#if>
16 <div class="bottom-gradient"></div>
17 <i class="icon icon-play"></i>
18</div>
19<div class="bottom-part">
20 <div class="oneline">
21 <span class="date subheading line-separator">${hourString} | </span>
22 <#if categories?has_content>
23 <span class="author subheading">${categories[0].getTitle(locale)}</span>
24 </#if>
25 </div>
26 <div class="title-content-block">
27 <h2 class="title">${.vars['reserved-article-title'].data}</h2>
28 </div>
29</div>