Updates
Updates
	
		Virhe tapahtui prosessoidessa esitysmallia.	
	
		
				
	
		
		
	
			
			
		
	
	
	
	
					
				
			
		
	
	
	The following has evaluated to null or missing:
==> blogsEntryLocalService.fetchBlogsEntry(blogEntryId?number)  [in template "4621425#4621464#6265650" at line 65, column 25]
----
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 curBlogEntry = blogsEntryLoca...  [in template "4621425#4621464#6265650" at line 65, column 1]
----
	1<#assign blogsEntryLocalService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")> 
				2<#assign favoriteItemLocalService = serviceLocator.findService("com.liferay.uss.common.service.service.FavoriteItemLocalService")> 
				3<#assign blogEntryId = "" > 
				4<#assign blogsPortlet_blogEntryId = "" > 
				5<#if renderRequest.getParameter("blogEntryId")??> 
				6<#assign blogEntryId =  renderRequest.getParameter("blogEntryId")?string /> 
				7<#elseif themeDisplay.getURLCurrent()?contains("?blogEntryId=") > 
				8<#assign blogEntryId = themeDisplay.getURLCurrent()?split("?blogEntryId=")[1] > 
				9</#if> 
				10 
				11<#if blogEntryId == ""> 
				12<section> 
				13    <div class=""> 
				14		<div class="card-employee-section">   
				15			<#if favoriteItemLocalService.getBlogsByCompanyId(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId())??> 
				16			<#assign blogEntries = favoriteItemLocalService.getBlogsEntries(themeDisplay.getCompanyId(), -1, -1) > 
				17			</#if> 
				18			<#assign count = 0 > 
				19			<#if blogEntries?has_content> 
				20			 
				21			<#assign blogEntries = blogEntries?sort_by("displayDate")?reverse > 
				22			<#list blogEntries as curBlogEntry > 
				23			<#if curBlogEntry.getCoverImageCaption() == "true"> 
				24			<#if count = 0 || count % 3 = 0 >                
				25			<div class="row"> 
				26				</#if>      
				27				<#assign src = "" >  
				28				<#if curBlogEntry.getCoverImageURL(themeDisplay)??> 
				29				<#assign src = curBlogEntry.getCoverImageURL(themeDisplay) >  
				30				<#else> 
				31				<#assign src = curBlogEntry.getCoverImageURL() >  
				32				</#if> 
				33				<#assign viewEntryPortletURL = renderResponse.createRenderURL() /> 
				34				${viewEntryPortletURL.setParameter("urlTitle", curBlogEntry.getUrlTitle())}        
				35				${viewEntryPortletURL.setParameter("blogEntryId", curBlogEntry.getEntryId()?string)} 
				36				<div class="col-12 col-lg-4 pr-md-2 pl-md-2"> 
				37				<!-- Inline Edit Start --> 
				38 
				39				<!-- Inline Edit end --> 
				40					<div class="card-employee">                                                      
				41						<div class="truncate-lines-1 h4">${htmlUtil.escape(curBlogEntry.getTitle())} </div> 
				42						<p class="news-date text-sm mb-2">${curBlogEntry.getDisplayDate()?date}</p> 
				43						<div class="aspect-ratio aspect-ratio-8-to-3 mb-3"  style="background-image:url(https://midwest.uss.com/documents/4621460/4849814/watermark.png/4cff3fe1-d71c-153d-c87c-117ecb0d4b6a?t=1686826360898);background-repeat: no-repeat;background-size: cover;background-position: center;"> 
				44							<#if src?? && src !=""> 
				45								<img alt="thumbnail" alt="${htmlUtil.escape(curBlogEntry.getTitle())}" class=" aspect-ratio-item-center-middle aspect-ratio-item-fluid lazy-load" datasrc="${src}"> 
				46							</#if> 
				47						</div> 
				48						<p class="card-text truncate-lines-3">  ${stringUtil.shorten(htmlUtil.stripHtml(curBlogEntry.getContent()), 250)}</p> 
				49						<a href="${viewEntryPortletURL.toString()}" class="card-link h6">Read More</a> 
				50					</div> 
				51				</div>                         
				52				<#if (count + 1) % 3 = 0>                          
				53			</div> 
				54			</#if> 
				55			<#assign count = count+1 > 
				56			</#if> 
				57			 
				58			</#list>  
				59			 
				60			</#if> 
				61        </div> 
				62    </div> 
				63</section> 
				64<#else> 
				65<#assign curBlogEntry = blogsEntryLocalService.fetchBlogsEntry(blogEntryId?number)> 
				66<section class="uss-section body-bg page-section pb-0 uss-section-update-details"> 
				67    <div class="container"> 
				68	    <div class="row">                                             
				69            <div class="col-12 "> 
				70                <#assign src = "" >  
				71                <#if curBlogEntry.getCoverImageURL(themeDisplay)??> 
				72				<#assign src = curBlogEntry.getCoverImageURL(themeDisplay) >  
				73				<#else> 
				74				<#assign src = curBlogEntry.getCoverImageURL() >  
				75				</#if>	 
				76				<#assign shareurl = themeDisplay.getPortalURL()+themeDisplay.getLayout().getFriendlyURL()+"/-/blogs/"+curBlogEntry.getUrlTitle()> 
				77 
				78				<div class="truncate-lines-1 h4">${htmlUtil.escape(curBlogEntry.getTitle())} 
				79				</div> 
				80				<p class="news-date text-sm mb-2">${curBlogEntry.getDisplayDate()?date}</p>                               
				81				<#if src?? && src !=""> 
				82				<div class="aspect-ratio aspect-ratio-8-to-3 mb-3" style="background-image:url(https://midwest.uss.com/documents/4621460/4849814/watermark.png/4cff3fe1-d71c-153d-c87c-117ecb0d4b6a?t=1686826360898);background-repeat: no-repeat;background-size: cover;background-position: center;">              
				83				<img class="nitesh aspect-ratio-item-center-middle aspect-ratio-item-fluid" alt="${htmlUtil.escape(curBlogEntry.getTitle())}" data-fileentryid="" src="${src}"> 
				84				</div> 
				85				</#if>				 
				86				<p> ${curBlogEntry.getContent()}</p> 
				87                                                                                                                                 
				88            </div>                    
				89        </div> 
				90    </div>   
				91</section>	 
				92</#if>