Service

An error occurred while processing the template.
The following has evaluated to null or missing:
==> categoryIds[0]  [in template "20116#20152#83650" at line 17, column 53]

----
Tip: It's the final [] step that caused this error, not those before it.
----
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: currentCategoryId = categoryIds[0]?nu...  [in template "20116#20152#83650" at line 17, column 33]
	- Reached through: #assign-container  [in template "20116#20152#83650" at line 12, column 17]
----
1<#if entries?has_content> 
2	<#assign  
3			LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
4			AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
5			AssetCategoryPropertyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryPropertyLocalService") 
6			LocalizationUtil = serviceLocator.findService("com.liferay.portal.kernel.util.LocalizationUtil") 
7			service = serviceLocator.findService("service.service.UtilLocalService") 
8			base32Service = serviceLocator.findService("mnp.custom.service.base32.Base32Service") 
9			portletTitle = htmlUtil.escape(portletDisplay.getTitle())  
10	/> 
11	<#if LayoutLocalService.getLayout(layout.getParentPlid())??> 
12		<#assign 
13				parentLayout = LayoutLocalService.getLayout(layout.getParentPlid()) 
14				parentFriendlyURL = parentLayout.getFriendlyURL() 
15				childrenFriendlyUrlList = service.getFriendlyUrlsByParentLayoutIdAsLocal(layout. getParentLayoutId(),themeDisplay.getCompanyId(),themeDisplay.getScopeGroupId()) 
16				categoryIds = service.getCategoryByFriendlyUrlAsLocal(base32Service.encodeBase32(parentFriendlyURL)) 
17				currentCategoryId = categoryIds[0]?number 
18				childCategories = AssetCategoryLocalService.getChildCategories(currentCategoryId) 
19				currentCategory = AssetCategoryLocalService.getCategory(currentCategoryId)  
20		/> 
21		<h2>${currentCategory.getTitle(locale)}</h2> 
22		<#list childrenFriendlyUrlList as childFriendlyUrl> 
23			<#list childCategories as childCategory> 
24				<#assign 
25						title = childCategory.getTitle(locale) 
26						id = childCategory.getCategoryId() 
27						url = base32Service.decodeBase32(AssetCategoryPropertyLocalService.getCategoryProperty(id,"link").getValue()) 
28				/> 
29			<ul class="gray_leftsidebar_nocollapse"> 
30				<#if childFriendlyUrl == url> 
31					 
32									<#if url == layout.getFriendlyURL()> 
33										<li style ="background-color: #2a5e8a;" ><a href="${url}" style ="color: white;">${title}</a></li> 
34									<#else> 
35										<li><a href="${url}">${title}</a></li> 
36									</#if> 
37				 
38				</#if> 
39			<ul> 
40			</#list> 
41		</#list> 
42		</#if> 
43		<#else> 
44	 <h1>${themeDisplay.translate("mnp-no-data-available")}</h1> 
45	</#if> 
46	<style> 
47		.gray_leftsidebar ul ul li:before { 
48			background: transparent !important; 
49
50		.gray_leftsidebar ul ul li { 
51			padding-left: 13px !important; 
52
53	</style> 




Asset Publisher is temporarily unavailable.
mnp.rating-v2 Portlet is temporarily unavailable.
HOT NEWS
January 4,
  • နိုင်ငံဝန်ထမ်းများနှင့် အသက် ၆၅ နှစ်နှင့်အထက် ရှိသူများအား ကိုဗစ်-၁၉ ရောဂါကာကွယ်ဆေး ထိုးနှံပေး
  • နေပြည်တော်ကောင်စီနယ်မြေ၊ ရန်ကုန်တိုင်းဒေသကြီးနှင့် မန္တလေးတိုင်းဒေသကြီးတို့ ၌ ကိုဗစ်- ၁၉ ရောဂါ ကာကွယ်ဆေးထိုးနှံ