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>{
|
private class IndividualRoleFilter extends UnaryFunctor<Individual,Boolean>{
|
||||||
@Override
|
@Override
|
||||||
public Boolean fn(Individual ind){
|
public Boolean fn(Individual ind){
|
||||||
log.debug("checking hidden status for Individual \"" + ind.getName() + "\"");
|
if( ind == null ) {
|
||||||
if( ind == null )
|
log.debug("checking hidden status for null Individual");
|
||||||
return canViewOddItems();
|
return canViewOddItems();
|
||||||
|
}
|
||||||
|
log.debug("checking hidden status for Individual \"" + ind.getName() + "\"");
|
||||||
|
|
||||||
try{
|
try{
|
||||||
if( ! sameLevelOrHigher( ind.getHiddenFromDisplayBelowRoleLevel() ) )
|
if( ! sameLevelOrHigher( ind.getHiddenFromDisplayBelowRoleLevel() ) )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue