r9981 - helma/helma/trunk/src/helma/scripting/rhino
[email protected] Wed, 4 Nov 2009 12:01:58 +0100 (CET)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20091104110158.1CF683D0E2@mia> |
Author: hannes
Date: 2009-11-04 12:01:58 +0100 (Wed, 04 Nov 2009)
New Revision: 9981
Modified:
helma/helma/trunk/src/helma/scripting/rhino/HopObject.java
Log:
Don't try to prefetch childnodes on transient nodes. Fixes bug #689
http://dev.helma.org/bugs/show_bug.cgi?id=689
Details at http://dev.helma.org/trac/helma/changeset/9981
Modified: helma/helma/trunk/src/helma/scripting/rhino/HopObject.java
===================================================================
--- helma/helma/trunk/src/helma/scripting/rhino/HopObject.java 2009-11-04 10:56:15 UTC (rev 9980)
+++ helma/helma/trunk/src/helma/scripting/rhino/HopObject.java 2009-11-04 11:01:58 UTC (rev 9981)
@@ -449,7 +449,10 @@
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);
+ }
}
}
}