Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael ADAM2017-01-06 11:39:37 -0500
committerGerrit Code Review @ Eclipse.org2017-01-30 08:34:04 -0500
commit3e90003e595227eb377ea86ed6ffa239b97d9fef (patch)
treec06d1c76959a9d412c2b0d5b9a0a27c1d847b99e
parent548e94c993a9180b7ec2456d6315fb97826e4eb8 (diff)
downloadorg.eclipse.papyrus-3e90003e595227eb377ea86ed6ffa239b97d9fef.tar.gz
org.eclipse.papyrus-3e90003e595227eb377ea86ed6ffa239b97d9fef.tar.xz
org.eclipse.papyrus-3e90003e595227eb377ea86ed6ffa239b97d9fef.zip
Bug 508275 - BasicIndexOutOfBoundsException below
TabFolderImpl.removePage (thrown in BasicEList.remove) https://bugs.eclipse.org/bugs/show_bug.cgi?id=508275 Change-Id: I0253bc49e7c0b4036027b4ca2584d977126f7fe1 Signed-off-by: Mickael ADAM <mickael.adam@ALL4TEC.net>
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sashwindows.di/src-gen/org/eclipse/papyrus/infra/core/sashwindows/di/impl/TabFolderImpl.java8
1 files changed, 5 insertions, 3 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 e14ab8a12d1..a4a5c57cc58 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
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2011, 2015 LIFL, CEA LIST, Christian W. Damus, and others.
+ * Copyright (c) 2011, 2016 LIFL, CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -9,7 +9,7 @@
* Contributors:
* LIFL - Initial API and implementation
* Christian W. Damus - bug 469188
- *
+ * Mickael ADAM (ALL4TEC) mickael.adam@all4tec.net - bug 508275
*****************************************************************************/
package org.eclipse.papyrus.infra.core.sashwindows.di.impl;
@@ -218,7 +218,9 @@ public class TabFolderImpl extends AbstractPanelImpl implements TabFolder {
*/
@Override
public void removePage(int pageIndex) {
- getChildren().remove(pageIndex);
+ if (0 <= pageIndex && pageIndex < getChildren().size()) {
+ getChildren().remove(pageIndex);
+ }
}
/**

Back to the top