[opencms-dev] nullpointer exception while using contentload on empty folder

René Machel rene.machel at unitb.de
Tue Feb 21 17:15:09 CET 2006


hi list,

how can i check if there is xmlContent in my current folder without 
OpenCms throwing a nullpointer exception if there is nothing to load (no 
teaser in that folder) ?
my contentload jsp file  looks like this:

<cms:contentload collector="allInFolderDateReleasedDesc" 
param="${opencms.folder}teaser_${number}|teaser" editable="true">
    do somethin
</cms:contentload>


thx in advance

rené




More information about the opencms-dev mailing list