Tietoa STUKista Tietoa STUKista

Tietoa STUKista

Tietoa STUKista

Henkilökorttiportletti

Virhe tapahtui prosessoidessa esitysmallia.
The following has evaluated to null or missing:
==> person  [in template "12509#12559#2584515" at line 2, column 31]

----
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: ${person.getFullName()}  [in template "12509#12559#2584515" at line 2, column 29]
----
1<div class="name-title-container"> 
2    <h1 class="person-name">${person.getFullName()}</h1> 
3    <#if currentLocale?contains("fi")> 
4        <#assign stukTitle = person.getTitleLongFi() /> 
5    <#elseif currentLocale?contains("sv")> 
6        <#assign stukTitle = person.getTitleLongSe() /> 
7    <#elseif currentLocale?contains("en")> 
8        <#assign stukTitle = person.getTitleLongEn() /> 
9    </#if> 
10    <span class="title">${stukTitle}</span> 
11</div> 
12<div class="person-info"> 
13    <div class="info"> 
14 
15        <div class="organization-info"> 
16        <#if person.getJobDescriptionFi()?has_content || person.getJobDescriptionSe()?has_content || person.getJobDescriptionEn()?has_content> 
17            <div class="additional-info"> 
18                <div class="info-row clearfix"> 
19                    <div class="info-label"><@liferay.language key="stuk.person-card-label-additionalinfo"/></div> 
20                    <div class="info-value"> 
21                        <#if currentLocale?contains("fi")> 
22                            <#assign jobDesc = person.getJobDescriptionFi() /> 
23                        <#elseif currentLocale?contains("sv")> 
24                            <#assign jobDesc = person.getJobDescriptionSe() /> 
25                        <#elseif currentLocale?contains("en")> 
26                            <#assign jobDesc = person.getJobDescriptionEn() /> 
27                        </#if> 
28                        ${jobDesc} 
29                    </div> 
30                </div> 
31            </div> 
32        <#elseif person.getAdditionalInfo()?has_content> 
33            <div class="additional-info"> 
34                <div class="info-row clearfix"> 
35                    <div class="info-label"><@liferay.language key="stuk.person-card-label-additionalinfo"/></div> 
36                    <div class="info-value"> 
37                        ${person.getAdditionalInfo()} 
38                    </div> 
39                </div> 
40            </div> 
41        </#if> 
42        <#if person.hasDifferentDepartmentAndUnit()> 
43            <div class="info-row clearfix"> 
44                <div class="info-label"><@liferay.language key="stuk.person-card-label-department"/></div> 
45                <div class="info-value"> 
46                    <#if currentLocale?contains("fi")> 
47                        <#assign stukDepartment = person.getDepartmentLongFi() /> 
48                    <#elseif currentLocale?contains("sv")> 
49                        <#assign stukDepartment = person.getDepartmentLongSe() /> 
50                    <#elseif currentLocale?contains("en")> 
51                        <#assign stukDepartment = person.getDepartmentLongEn() /> 
52                    </#if> 
53                    ${stukDepartment?has_content?string(stukDepartment,'-')} 
54                </div> 
55            </div> 
56        </#if> 
57            <div class="info-row clearfix"> 
58                <div class="info-label"><@liferay.language key="stuk.person-card-label-unit"/></div> 
59                <div class="info-value"> 
60                    <#if currentLocale?contains("fi")> 
61                        <#assign stukUnit = person.getUnitLongFi() /> 
62                    <#elseif currentLocale?contains("sv")> 
63                        <#assign stukUnit = person.getUnitLongSe() /> 
64                    <#elseif currentLocale?contains("en")> 
65                        <#assign stukUnit = person.getUnitLongEn() /> 
66                    </#if> 
67                    ${stukUnit?has_content?string(stukUnit,'-')} 
68                </div> 
69            </div> 
70            <#-- Hiding these for now. 
71                <div class="info-row clearfix"> 
72                    <div class="info-label"><@liferay.language key="stuk.person-card-label-location"/></div> 
73                    <div class="info-value"> 
74                        <#if person.getLocation()?has_content> 
75                            ${person.getLocation()} 
76                        <#else> 
77
78                        </#if> 
79                    </div> 
80                </div> 
81            </div> 
82            --> 
83            <div class="contact-info"> 
84                <div class="info-row clearfix"> 
85                    <div class="info-label"><@liferay.language key="stuk.person-card-label-phone"/></div> 
86                    <div class="info-value"> 
87                    <#if person.getPhone()?has_content> 
88                        ${person.getPhone()} 
89                    <#else> 
90
91                    </#if> 
92                    </div> 
93                </div> 
94        <#if obfuscatedEmail?has_content> 
95                <div class="info-row clearfix"> 
96                    <div class="info-label"><@liferay.language key="stuk.person-card-label-email"/></div> 
97                    <div class="info-value"> 
98                        ${obfuscatedEmail} 
99                    </div> 
100                </div> 
101        </#if> 
102        </div> 
103        <#if localizedExpertiseList?has_content> 
104            <div class="expertise"> 
105                <div class="info-row clearfix"> 
106                    <div class="info-label"><@liferay.language key="stuk.person-card-label-expertise"/></div> 
107                    <div class="info-value"> 
108                        ${localizedExpertiseList} 
109                    </div> 
110                </div> 
111            </div> 
112        </#if> 
113        </div> 
114    </div>