Prevent the debug statement from throwing NullPointerException on a null statement.
This commit is contained in:
parent
aae6de1752
commit
3ee3e0bacd
1 changed files with 1 additions and 1 deletions
|
@ -138,9 +138,9 @@ public class HiddenFromDisplayBelowRoleLevelFilter extends VitroFiltersImpl {
|
|||
extends UnaryFunctor<E,Boolean>{
|
||||
@Override
|
||||
public Boolean fn(E dPropStmt) {
|
||||
if( dPropStmt == null ) return false; //don't know why this would happen
|
||||
log.debug("checking hidden status for data property statement \"" + dPropStmt.getDatapropURI() + "\"");
|
||||
try {
|
||||
if( dPropStmt == null ) return false; //don't know why this would happen
|
||||
String propUri = dPropStmt.getDatapropURI();
|
||||
DataProperty prop = null;
|
||||
if( dataPropertyMap.containsKey(propUri) ){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue