fixed if statement for null-node invalidation
This commit is contained in:
parent
a94d8c8d81
commit
598111bba7
1 changed files with 5 additions and 3 deletions
|
@ -222,10 +222,12 @@ public final class NodeManager {
|
|||
// we need further checks for subnodes fetched by name if the subnodes were changed.
|
||||
if (rel.subnodesAreProperties && node != null && node.getState() != Node.INVALID) {
|
||||
// check if node is null node (cached null)
|
||||
if (node instanceof NullNode && node.created() < rel.other.lastDataChange)
|
||||
node = null; // cached null not valid anymore
|
||||
else if (home.contains (node) < 0)
|
||||
if (node instanceof NullNode) {
|
||||
if (node.created() < rel.other.lastDataChange)
|
||||
node = null; // cached null not valid anymore
|
||||
} else if (home.contains (node) < 0) {
|
||||
node = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (node == null || node.getState() == Node.INVALID) {
|
||||
|
|
Loading…
Add table
Reference in a new issue