Ein Fehler trat bei der Verarbeitung der Vorlage auf.
Invocation of method 'get' in  class com.liferay.portal.kernel.util.UnmodifiableList threw exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at 20289ORGANISATION_KATEGORIE[line 28, column 39]
1#set ($addressService = 
2$serviceLocator.findService("com.liferay.portal.service.AddressLocalService")) 
3 
4#set ($organizationService = 
5$serviceLocator.findService("com.liferay.portal.service.OrganizationLocalService")) 
6 
7#set ($assetCategoryService = 
8$serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")) 
9 
10#set ($assetEntryService = 
11$serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService")) 
12 
13#set ($journalService = 
14$serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")) 
15 
16#set ($article = $journalService.getArticle($getterUtil.getLong($groupId),$reserved-article-id.getData())) 
17 
18#set ($classNameService = 
19$serviceLocator.findService("com.liferay.portal.service.ClassNameLocalService")) 
20 
21#set ($orgClassNameId = $classNameService.getClassName("com.liferay.portal.model.Organization")) 
22 
23#set ($articleClassNameId = $classNameService.getClassName("com.liferay.portlet.journal.model.JournalArticle")) 
24 
25#set ($articleCategrories = 
26$assetCategoryService.getCategories($articleClassNameId.getClassNameId(), $article.getResourcePrimKey())) 
27 
28#set ($category = $articleCategrories.get(0)) 
29 
30#set ($organizations = $organizationService.getOrganizations(-1,-1)) 
31<div class="container htmltext"> 
32<h1>$Ueberschrift.getData()</h1> 
33<div> 
34$Inhalt.getData() 
35</div> 
36<div> 
37</div> 
38</div> 
39 
40 <DIV class="container"> 
41<h1>Firmenliste</h1> 
42#foreach( $orga in $organizations ) 
43	#set ($ids = $assetCategoryService.getCategoryIds("com.liferay.portal.model.Organization", $orga.getOrganizationId())) 
44	 
45		#if ($ids.contains($category.getCategoryId())) 
46   <a href="/$MitgliederPageLink.getData()/-/mitglied/show/$orga.getOrganizationId()" class="list_item"> 
47              <SPAN class="list_image"><img src="$portalUtil.getPathImage()/organization_logo?img_id=$orga.getLogoId()" border="0" ></span> 
48         <SPAN class="list_text"><b>$orga.Name</b><br>#set ($addresses = $addressService.getAddresses($getterUtil.getLong($companyId), "com.liferay.portal.model.Organization", $orga.getOrganizationId())) 
49					#if( !$addresses.isEmpty() ) 
50					$addresses.get(0).getCity() 
51					#end</SPAN> 
52               
53              <div class="clear"></div> 
54          </a> 
55 
56 
57  
58		#end 
59#end 
60</div>