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,11 +222,13 @@ public final class NodeManager {
|
||||||
// we need further checks for subnodes fetched by name if the subnodes were changed.
|
// we need further checks for subnodes fetched by name if the subnodes were changed.
|
||||||
if (rel.subnodesAreProperties && node != null && node.getState() != Node.INVALID) {
|
if (rel.subnodesAreProperties && node != null && node.getState() != Node.INVALID) {
|
||||||
// check if node is null node (cached null)
|
// check if node is null node (cached null)
|
||||||
if (node instanceof NullNode && node.created() < rel.other.lastDataChange)
|
if (node instanceof NullNode) {
|
||||||
|
if (node.created() < rel.other.lastDataChange)
|
||||||
node = null; // cached null not valid anymore
|
node = null; // cached null not valid anymore
|
||||||
else if (home.contains (node) < 0)
|
} else if (home.contains (node) < 0) {
|
||||||
node = null;
|
node = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (node == null || node.getState() == Node.INVALID) {
|
if (node == null || node.getState() == Node.INVALID) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue