Make-up pads
An error occurred while processing the template.
The following has evaluated to null or missing: ==> wasteItem.image [in template "12768602#20123#null" at line 9, column 21] ---- Tip: It's the step after the last dot 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: ${wasteItem.image.link.href} [in template "12768602#20123#null" at line 9, column 19] ----
1<#assign wasteItemId = ObjectEntry_objectEntryId.getData() />
2
3<#assign http_options = staticUtil["com.liferay.portal.kernel.util.InstanceFactory"].newInstance("com.liferay.portal.kernel.util.Http$Options") />
4<#assign VOID = http_options.addHeader("Authorization", "Basic RGF2aWQuS2VubmVkeUBsaXNidXJuY2FzdGxlcmVhZ2guZ292LnVrOk1jdS1EZXNpZ24yIQo=") />
5<#assign VOID = http_options.setLocation(themeDisplay.getPortalURL()+"/o/c/lcccwasteitems/"+wasteItemId+"?nestedFields=wasteItems,acceptedItems&fields=image.link.href,wasteItems.type,wasteItems.colour,wasteItems.image.link.href,acceptedItems.name,acceptedItems.image.link.href,acceptedItems.link") />
6<#assign wasteItem = jsonFactoryUtil.looseDeserialize(httpUtil.URLtoString(http_options)) />
7
8<#if (ObjectField_image.getData())??>
9 <img src="${wasteItem.image.link.href}" alt="" style="width: 100%; max-width: 24rem;">
10</#if>
11
12<h4 class="mt-5 mb-3">Waste type:</h4>
13<ul class="list-unstyled">
14<#list wasteItem.wasteItems as wasteType>
15 <li class="d-flex align-items-center mb-2"><img src="${wasteType.image.link.href}" class="w-2 h-2 rounded-circle" style="background-color: #${wasteType.colour}"><span class="ml-2 d-block">${wasteType.type}</span>
16</li>
17</#list>
18</ul>
19
20<h4 class="mt-5 mb-3">Where does it go:</h4>
21<ul class="list-unstyled">
22<#list wasteItem.acceptedItems as bin>
23 <li class="d-flex align-items-center mb-2"><img src="${bin.image.link.href}" class="w-2 h-2"><span class="ml-2 d-block"><a href="${bin.link}">${bin.name}</a></span></li>
24</#list>
25</ul>
26
27<#if (ObjectField_information.getData())?? && (ObjectField_information.getData())?has_content>
28 <h4 class="mt-5 mb-3">Instructions / advice:</h4>
29 ${ObjectField_information.getData()}
30</#if>