The following has evaluated to null or missing: ==> permissionChecker.getUser().getExpandoBridge().getAttribute('Userparentdealernumber') [in template "20155#20195#23459" at line 1, column 29] ---- 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: userDealerNumber = permissionChecker... [in template "20155#20195#23459" at line 1, column 10] ----
1<#assign userDealerNumber = permissionChecker.getUser().getExpandoBridge().getAttribute('Userparentdealernumber')
2dealerImagesStaticPath = propsUtil.get("dealer.images.path.engnx")
3dealerImageSrc = dealerImagesStaticPath + userDealerNumber + ".png"
4/>
5
6
7
8<#if permissionChecker.isSignedIn()>
9<label class="welcome-text">${Welcome_Label.getData()}</label>
10<input type="hidden" id="wbc_dealerNumber" value="${permissionChecker.getUser().getExpandoBridge().getAttribute('userDealerNumber')}">
11 <#if permissionChecker.getUser().getExpandoBridge().getAttribute("preferredName")?length == 0>
12 <#if permissionChecker.getUser().getFirstName()?length <= 10>
13 <label class="loggd_username" title="${permissionChecker.getUser().getFirstName()} ${permissionChecker.getUser().getLastName()}">${permissionChecker.getUser().getFirstName()} <a href="/web/eme/user-settings/#dah" class="loggd_username"><span class="wbc_dealerAlias"></span></a></label>
14 <#else>
15 <label class="loggd_username" title="${permissionChecker.getUser().getFirstName()} ${permissionChecker.getUser().getLastName()}">${permissionChecker.getUser().getFirstName()?substring(0,10)}... <a href="/web/eme/user-settings/#dah" class="loggd_username"><span class="wbc_dealerAlias"></span></a></label>
16 </#if>
17 <#elseif permissionChecker.getUser().getExpandoBridge().getAttribute("preferredName")?length <= 10>
18 <label class="loggd_username" title="${permissionChecker.getUser().getFirstName()} ${permissionChecker.getUser().getLastName()}">${permissionChecker.getUser().getExpandoBridge().getAttribute("preferredName")} <a href="/web/eme/user-settings/#dah" class="loggd_username"><span class="wbc_dealerAlias"></span></a></label>
19 <#else>
20 <label class="loggd_username" title="${permissionChecker.getUser().getFirstName()} ${permissionChecker.getUser().getLastName()}">${permissionChecker.getUser().getExpandoBridge().getAttribute("preferredName")?substring(0,10)}... <a href="/web/eme/user-settings/#dah" class="loggd_username"><span class="wbc_dealerAlias"></span></a></label>
21 </#if>
22</#if>
23<div class="dealer_logo">
24 <img id="dealer_img" alt="Dealer Logo" src="${dealerImageSrc}" onerror="this.style.display='none'"/>
25</div>
26<div class="profile_sprocket pc_ps">
27 <div class="box_menu profile_menu" style="width: max-content;">
28 <div class="top_arrow"> </div>
29 <ul>
30 <li class="profile_list">
31 <div class="profile">
32 <div class="profile_img "><img id="webcontent_dp" src="" />
33 <div class="change_pic"><a href="/web/eme/user-settings">${Profile_Image_Change_Label.getData()}</a><a href="/web/eme/user-settings">${Profile_Image_Remove_Label.getData()}</a>
34 </div>
35 </div>
36 <#if permissionChecker.isSignedIn()>
37 <div class="profile_text">${permissionChecker.getUser().getFirstName()} ${permissionChecker.getUser().getLastName()}</div>
38 </#if>
39 </div>
40 </li>
41 <li class="profile_list"><a href="/web/eme/user-settings">${User_Settings_Label.getData()}</a></li>
42 <li class="profile_list"><a id='smx' href="/c/portal/logout">${Logout_Label.getData()}</a></li>
43 </ul>
44 </div>
45</div>
46
47
48
49<script type="text/javascript">
50 $(document).ready(function(){
51 var ua = window.navigator.userAgent;
52 if(ua.indexOf("Edge") > -1 || ua.indexOf('Trident/') > -1 || ua.indexOf('MSIE') > -1){
53 var smxvalu=document.getElementById("smx").href;
54 if(undefined != smxvalu){
55 smxvalu=smxvalu.replace('/web','');
56 document.getElementById("smx").href=smxvalu;
57 }
58 }else{
59 document.getElementById("smx").href="/c/portal/logout";
60 }
61 });
62</script>