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:
hns 2009-11-04 11:01:58 +00:00
parent daf3b0b292
commit 8c219d75a3

View file

@ -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);
}
}
}
}