diff options
author | Géry Deloge | 2016-06-30 15:37:58 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2016-07-01 12:50:49 +0000 |
commit | d65cbf89dee62ac919910d06dc93511359e0a61c (patch) | |
tree | f55d339f61a870da48459fc3edf63b513261305c /plugins/infra | |
parent | 102e7aba8934f17c9d18527c01de01f6ccbc93cb (diff) | |
download | org.eclipse.papyrus-d65cbf89dee62ac919910d06dc93511359e0a61c.tar.gz org.eclipse.papyrus-d65cbf89dee62ac919910d06dc93511359e0a61c.tar.xz org.eclipse.papyrus-d65cbf89dee62ac919910d06dc93511359e0a61c.zip |
Bug 496846: ArrayIndexOutOfBoundsException below TabFolderImpl.movePage
Change-Id: I44703fea2fbafac77c4659dadb77dded55f773f4
Signed-off-by: Géry Deloge <gery.deloge@cea.fr>
Diffstat (limited to 'plugins/infra')
-rw-r--r-- | plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java index 75e82c4e982..e14ab8a12d1 100644 --- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java +++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java @@ -347,15 +347,12 @@ public class TabFolderImpl extends AbstractPanelImpl implements TabFolder { newIndex = 0; } - if (oldIndex == newIndex) { + if ((listSize == 0) + || (oldIndex == newIndex) + || (oldIndex < 0)) { return; } - if (listSize == 0) { - return; - } - - getChildren().move(newIndex, oldIndex); } |