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