Prevent the debug statement from throwing NullPointerException on a null individual.

This commit is contained in:
jeb228 2011-02-07 16:40:57 +00:00
parent 5dead7cbd5
commit aae6de1752

View file

@ -99,9 +99,11 @@ public class HiddenFromDisplayBelowRoleLevelFilter extends VitroFiltersImpl {
private class IndividualRoleFilter extends UnaryFunctor<Individual,Boolean>{
@Override
public Boolean fn(Individual ind){
if( ind == null ) {
log.debug("checking hidden status for null Individual");
return canViewOddItems();
}
log.debug("checking hidden status for Individual \"" + ind.getName() + "\"");
if( ind == null )
return canViewOddItems();
try{
if( ! sameLevelOrHigher( ind.getHiddenFromDisplayBelowRoleLevel() ) )