Don't try to prefetch childnodes on transient nodes. Fixes bug #689
http://dev.helma.org/bugs/show_bug.cgi?id=689
This commit is contained in:
parent
daf3b0b292
commit
8c219d75a3
1 changed files with 4 additions and 1 deletions
|
@ -449,7 +449,10 @@ public class HopObject extends ScriptableObject implements Wrapper, PropertyReco
|
|||
if (proxy != null) {
|
||||
INode node = getNode();
|
||||
if (node instanceof Node) {
|
||||
((Node) node).prefetchChildren(start, length);
|
||||
Node n = (Node) node;
|
||||
if (n.getState() != Node.TRANSIENT && n.getState() != Node.NEW) {
|
||||
n.prefetchChildren(start, length);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue