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

This commit is contained in:
jeb228 2011-02-07 16:43:38 +00:00
parent aae6de1752
commit 3ee3e0bacd

View file

@ -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) ){