Entezopatia rozcięgna podeszwowego
Wystąpił błąd podczas przetwarzania szablonu.
The following has evaluated to null or missing: ==> asset.getCategories()[0] [in template "20097#20123#45908" at line 6, column 21] ---- 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: #assign category = asset.getCategorie... [in template "20097#20123#45908" at line 6, column 1] ----
1<#assign id = randomNamespace>
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
3<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
4<#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data)>
5<#assign asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey) >
6<#assign category = asset.getCategories()[0]>
7<#assign categoryId = category.getCategoryId()?string>
8<#assign categoryName = category.getName()>
9
10<script>
11 var hasLayout = !document.querySelector('.component-html');
12 if (!hasLayout) {
13 document.write('<orto-forum-layout>');
14 }
15</script>
16
17<orto-forum-clinical-images id="${id}"></orto-forum-clinical-images>
18
19<script>
20 if (!hasLayout) {
21 document.write('</orto-forum-layout>');
22 }
23
24 var clinicalImagesData_${id} = clinicalImagesData_${id} || [];
25 clinicalImagesData_${id}.push(
26 <#if obrazy.getSiblings()?has_content>
27 <#list obrazy.getSiblings() as cur_obrazy>
28 <#if (cur_obrazy.getData())?? && cur_obrazy.getData() != "">
29 <#assign alt = cur_obrazy.getAttribute("alt")>
30 <#assign fileentryid = cur_obrazy.getAttribute("fileEntryId")>
31 <#assign src = cur_obrazy.getData()>
32 {
33 imageUrl: '${htmlUtil.escapeJS(src)}',
34 imageAltDescription: '${htmlUtil.escapeJS(alt)}',
35 tags: [
36 <#list asset.getTags() as tag>
37 <#assign tagName = tag.name>
38 {
39 name: '${htmlUtil.escapeJS(tagName)}',
40 url: '/obrazy?p_p_id=com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_&p_r_p_categoryId=0&p_r_p_tag=${htmlUtil.escapeJS(tagName?replace(" ", "+"))}'
41 }
42 <#sep>,</#sep>
43 </#list>
44 ]
45 },
46 </#if>
47 </#list>
48 </#if>
49 );
50
51 var clinicalImages_${id} = document.querySelector('#${id}');
52 clinicalImages_${id}.dataTitle = '${htmlUtil.escapeJS(.vars['reserved-article-title'].data)}';
53 clinicalImages_${id}.dataClinicalImages = clinicalImagesData_${id};
54
55 if (!hasLayout) {
56 window.ortoForumBreadcrumb = window.ortoForumBreadcrumb || document.querySelector('orto-forum-breadcrumb');
57 window.ortoForumBreadcrumb.dataBreadcrumbs = [
58 {
59 name: 'Obrazy',
60 url: '/obrazy'
61 },
62 {
63 name: '${htmlUtil.escapeJS(categoryName)}',
64 url: '${"/obrazy?p_p_id=com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_&p_r_p_tag=&p_r_p_categoryId=" + categoryId}'
65 },
66 {
67 name: clinicalImages_${id}.dataTitle
68 }
69 ];
70 }
71</script>
Kończyna dolna
Kończyna górna
Kręgosłup
Staw barkowy
Staw biodrowy