Prevent the debug statement from throwing NullPointerException on a null individual.
This commit is contained in:
parent
5dead7cbd5
commit
aae6de1752
1 changed files with 4 additions and 2 deletions
|
@ -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() ) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue