Prevent the debug statement from throwing NullPointerException on a null statement.
This commit is contained in:
parent
b901521f7b
commit
eee793bb32
1 changed files with 4 additions and 2 deletions
|
@ -188,9 +188,11 @@ public class HiddenFromDisplayBelowRoleLevelFilter extends VitroFiltersImpl {
|
|||
extends UnaryFunctor<E,Boolean>{
|
||||
@Override
|
||||
public Boolean fn(E stmt) {
|
||||
log.debug("checking hidden status for object property statement \"" + stmt.getPropertyURI() + "\"");
|
||||
if( stmt == null )
|
||||
if( stmt == null ) {
|
||||
log.debug("checking hidden status for null object property statement");
|
||||
return false;
|
||||
}
|
||||
log.debug("checking hidden status for object property statement \"" + stmt.getPropertyURI() + "\"");
|
||||
|
||||
try {
|
||||
ObjectProperty prop = stmt.getProperty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue