Merge pull request #18 from lmann99/treeController-array-index-out-of-bounds

Tree controller array index out of bounds
This commit is contained in:
lmann99 2017-01-26 01:13:31 -05:00 committed by GitHub
commit 50855d19e3

View file

@ -609,7 +609,7 @@ public abstract class TreeController<T extends ITreeNode<T>> extends GenericForw
int myPosition = parent.getIndex();
if (myPosition < treeItems.size() - 1) {
if ((myPosition < treeItems.size() - 1) && myPosition > 0) {
// The current node is not the last one
Treerow downTreerow = treeItems.get(myPosition + 1).getTreerow();