exclude nullNode from contains-check in getNode
This commit is contained in:
parent
6933648d3b
commit
4e7c831dd2
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,10 @@ public final class NodeManager {
|
|||
// check if we can use the cached node without further checks.
|
||||
// we need further checks for subnodes fetched by name if the subnodes were changed.
|
||||
if (rel.subnodesAreProperties && node != null && node.getState() != Node.INVALID) {
|
||||
if (home.contains (node) < 0)
|
||||
// check if node is null node (cached null)
|
||||
if (node == nullNode)
|
||||
; // TODO: perform null validity test
|
||||
else if (home.contains (node) < 0)
|
||||
node = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue