Check against dbmap NullPointerException in getParent()

This commit is contained in:
hns 2004-03-10 13:00:47 +00:00
parent cdba357096
commit bebeecfa77

View file

@ -702,7 +702,7 @@ public final class Node implements INode, Serializable {
// check what's specified in the type.properties for this node. // check what's specified in the type.properties for this node.
ParentInfo[] parentInfo = null; ParentInfo[] parentInfo = null;
if (lastParentSet <= Math.max(dbmap.getLastTypeChange(), lastmodified)) { if (dbmap != null && lastParentSet <= Math.max(dbmap.getLastTypeChange(), lastmodified)) {
parentInfo = dbmap.getParentInfo(); parentInfo = dbmap.getParentInfo();
} }