Fixes AMQ-2863 : KahaDB NPE can occur using random index removes

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@983672 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2010-08-09 15:04:15 +00:00
parent 530ab0420b
commit d93ef2a919
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ public final class BTreeNode<Key,Value> {
private BTreeNode<Key,Value> getRightLeaf(Transaction tx) throws IOException {
BTreeNode<Key,Value> cur = this;
while(cur.isBranch()) {
cur = cur.getChild(tx, keys.length);
cur = cur.getChild(tx, cur.keys.length);
}
return cur;
}