diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index 1a52b479..f87c33a6 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -1249,12 +1249,15 @@ public final class Node implements INode, Serializable { loadNodes (); if (subnodes == null) return; + if (startIndex >= subnodes.size()) + return; int l = Math.min (subnodes.size()-startIndex, length); if (l < 1) return; Key[] keys = new Key[l]; - for (int i=startIndex; i