Frequently asked questions
An error occurred while processing the template.
The following has evaluated to null or missing:
==> ramUtils.getCurrentMarket(request) [in template "64899143380625#20119#49671" at line 42, column 75]
----
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 market = ramUtils.getCurrentM... [in template "64899143380625#20119#49671" at line 42, column 57]
---- 1<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/> 2<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")/> 3<#assign currentUrl = themeDisplay.getURLCurrent()> 4<#assign catId = currentUrl?matches('.*[?&]categoryId=([0-9]+).*')?then(currentUrl?replace('.*[?&]categoryId=([0-9]+).*', '$1', 'r'), '') /> 5 6 <div class="col-12 tab-content" id="faq-tab-content"> 7 <div class="tab-pane fade active show" role="tabpanel" aria-labelledby="baggage-tab"> 8 <div class="d-none d-lg-block"> 9 <#if catId == ""> 10 <h3><@liferay.language key="all"/></h3> 11 <#else> 12 <#assign category = assetCategoryLocalService.getCategory(catId?number)> 13 <h3><@liferay.language key="${category.getName()}"/></h3> 14 </#if> 15 <hr> 16 </div> 17 <#if entries?has_content> 18 <div class="page-list"> 19 <ul class="bullet-list"> 20 <#list entries as curEntry> 21 <#assign assetRenderer = curEntry.getAssetRenderer()/> 22 <#assign journalArticle = assetRenderer.getAssetObject() /> 23 <#assign ddmStructure = journalArticle.getDDMStructure() /> 24 <#assign structureMap = ddmStructure.getDDMFormFieldsMap() /> 25 <#assign ddmForm = ddmStructure.getDDMForm()/> 26 <#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) /> 27 <#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() /> 28 29 <#list ddmFormFieldValues as fieldName> 30 31 <#if fieldName.getFieldReference() == 'Question'> 32 <#assign Question = fieldName.getValue().getString(locale)/> 33 </#if> 34 35 </#list> 36 37 <#assign link = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry)> 38 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, link)> 39 <#assign articlePrimKey = journalArticle.resourcePrimKey > 40 <#assign className= curEntry.getClassName()> 41 <#assign articleCatNames = assetCategoryLocalService.getCategoryNames(className, getterUtil.getLong(articlePrimKey))> 42 <#assign market = ramUtils.getCurrentMarket(request)> 43 <#assign showEntry = false> 44 <#assign matchesCategory = false> 45 46 <#if catId == ""> 47 <#assign matchesCategory = true> 48 <#else> 49 <#assign entryCatIds = assetCategoryLocalService.getCategoryIds(className, getterUtil.getLong(articlePrimKey))> 50 <#list entryCatIds as ecid> 51 <#if ecid?string == catId> 52 <#assign matchesCategory = true> 53 </#if> 54 </#list> 55 </#if> 56 57 58 <#list articleCatNames as catName> 59 <#if catName?starts_with("Market ")> 60 <#assign catMarket = catName?split(" ")[1]?split("-")[0]?lower_case> 61 <#if catMarket == market> 62 <#assign showEntry = true> 63 </#if> 64 </#if> 65 </#list> 66 67 <#if viewURL?split("?")?size gt 0> 68 <#list viewURL?split("?") as text> 69 <#if text_index == 0> 70 <#assign viewURL = text> 71 </#if> 72 </#list> 73 </#if> 74 75 76 <#if showEntry && matchesCategory> 77 <li><a href="${viewURL}">${Question}</a></li> 78 </#if> 79 </#list> 80 </ul> 81 </div> 82 </#if> 83 </div> 84 </div>