Check that vClassGroup is non-null to prevent errors on the page

This commit is contained in:
rjy7 2011-01-19 19:06:13 +00:00
parent 4151edf34c
commit 31ea87ae58

View file

@ -2,12 +2,15 @@
<#assign populatedClasses = 0 />
<#if vClassGroup??> <#-- the controller may put a null -->
<#list vClassGroup as vClass>
<#-- Check to see if any of the classes in this class group have individuals -->
<#if (vClass.entityCount > 0)>
<#assign populatedClasses = populatedClasses + 1 />
</#if>
</#list>
</#if>
<#if (populatedClasses == 0)>
<#assign noData = true />
<#else>