Fórmate

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> mtlAssetService.getDlFormFieldValueAssetEntry(videoFieldValue, locale)  [in template "36403#36449#TPL_VIDEO" at line 11, column 28]

----
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 videoAssetEntry = mtlAssetSer...  [in template "36403#36449#TPL_VIDEO" at line 11, column 1]
----
1<#assign titulo = .vars['reserved-article-title'].data /> 
2<#assign mtlAssetService = serviceLocator.findService("pa.mtl.asset.service.api.MtlAssetService")> 
3<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
4<#assign articleId = .vars['reserved-article-id'].data/> 
5<#assign journalArticle = journalArticleLocalService.getArticle(groupId, articleId) />  
6<#assign ddmFormFieldValuesMap = mtlAssetService.getDDMFormFieldValuesMap(journalArticle) />  
7 
8 
9 
10<#assign videoFieldValue = ddmFormFieldValuesMap["video"][0] /> 
11<#assign videoAssetEntry = mtlAssetService.getDlFormFieldValueAssetEntry(videoFieldValue, locale) /> 
12<#assign videoFfvMap = mtlAssetService.getDDMFormFieldValuesMap(videoAssetEntry) /> 
13 
14<!--<p> 
15	${videoAssetEntry.getDescription()} 
16</p>--> 
17 
18<#assign videoCaptions = (getDownloadURL(mtlAssetService.getDlFormFieldValueAssetEntry(videoFfvMap["subtitulos"][0], locale), true))!"" /> 
19<#assign videoCaptionsText = (getVideoCaptionsText(mtlAssetService.getDlFormFieldValueAssetEntry(videoFfvMap["subtitulos"][0], locale)))!"" /> 
20 
21<#assign videoAudioDesc = (getDownloadURL(mtlAssetService.getDlFormFieldValueAssetEntry(videoFfvMap["descripcionAuditiva"][0], locale), false))!"" /> 
22 
23<#assign videoUrl = getDownloadURL(videoAssetEntry, false) /> 
24 
25 
26 
27<#assign videoData = themeDisplay.getPathThemeImages()+"/player.swf?file=" + videoUrl + "&amp;captions=" + videoCaptions + "&amp;audio=" + videoAudioDesc + "&amp;autoStart=false&amp;plugins=captions-1,audiodescription-1" /> 
28 
29 
30<div class="cajavideo"> 
31	<object type="application/x-shockwave-flash" width="372" height="283" data="${videoData}"> 
32		<param name="wmode" value="transparent"/> 
33		<param name="movie" value="${videoData}"/> 
34		<param name="allowScriptAccess" value="always" /> 
35		<param name="allowFullScreen" value="true"/> 
36		<param name="scale" value="noscale" /> 
37		<param name="salign" value="lt" /> 
38		<param name="quality" value="high" /> 
39		<param name="bgcolor" value="#fffbda" /> 
40	 
41		 
42		<img src="/RecursosWeb/trabajastur/Videos/${videoAssetEntry.getDescription()}.jpg" alt="${titulo}"> 
43 
44		<p>	 
45		<#if videoCaptions?? && videoCaptions != ""> 
46			${htmlUtil.stripHtml(videoCaptionsText)} 
47		</#if> 
48		</p> 
49	</object> 
50</div> 
51 
52 
53<#function getDownloadURL theAssetEntry="" addHost=false> 
54	<#assign theDocumentUrl = "" /> 
55	<#if theAssetEntry?has_content> 
56		<#assign theFileEntry = (theAssetEntry.getAssetRenderer().getAssetObject())!"" /> 
57		<#if theFileEntry?has_content> 
58			<#assign theDocumentUrl = "/o/mtl-document/download/" + theFileEntry.getFileEntryId() + "/" + theFileEntry.getFileName() /> 
59			<#if addHost> 
60				<#assign theDocumentUrl = portalUtil.getPortalURL(themeDisplay) + theDocumentUrl /> 
61			</#if> 
62		</#if> 
63	</#if> 
64	<#return theDocumentUrl> 
65</#function> 
66 
67 
68<#function getVideoCaptionsText theAssetEntry=""> 
69	<#assign theContent = "" /> 
70	<#if theAssetEntry?has_content> 
71		<#assign theFileEntry = (theAssetEntry.getAssetRenderer().getAssetObject())!"" /> 
72		<#if theFileEntry?has_content> 
73			<#assign theContent = stringUtil.read(theFileEntry.getContentStream()) /> 
74		</#if> 
75	</#if> 
76	<#return theContent> 
77</#function>