Merge pull request #18 from lmann99/treeController-array-index-out-of-bounds
Tree controller array index out of bounds
This commit is contained in:
commit
50855d19e3
1 changed files with 1 additions and 1 deletions
|
|
@ -609,7 +609,7 @@ public abstract class TreeController<T extends ITreeNode<T>> extends GenericForw
|
||||||
|
|
||||||
int myPosition = parent.getIndex();
|
int myPosition = parent.getIndex();
|
||||||
|
|
||||||
if (myPosition < treeItems.size() - 1) {
|
if ((myPosition < treeItems.size() - 1) && myPosition > 0) {
|
||||||
// The current node is not the last one
|
// The current node is not the last one
|
||||||
Treerow downTreerow = treeItems.get(myPosition + 1).getTreerow();
|
Treerow downTreerow = treeItems.get(myPosition + 1).getTreerow();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue