Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2015-11-23 12:29:30 +0000
committerMickael Istria2015-11-23 12:29:30 +0000
commita258a6abe15c691b505dbb39650967a4e1fe4049 (patch)
tree5a88acf9e9e763b74601b0b5355d961ba1be9fc0
parentf411df205cd17ec20020c3d7f664ee4ca6fefc4e (diff)
downloadorg.eclipse.e4.ui-a258a6abe15c691b505dbb39650967a4e1fe4049.tar.gz
org.eclipse.e4.ui-a258a6abe15c691b505dbb39650967a4e1fe4049.tar.xz
org.eclipse.e4.ui-a258a6abe15c691b505dbb39650967a4e1fe4049.zip
[Importer] Avoid AIOBE when root project doesn't have configurator
Change-Id: I2c40b7bb64989ee1cc727ad68db4a3bcf875c0f4 Signed-off-by: Mickael Istria <mistria@redhat.com>
-rw-r--r--bundles/org.eclipse.e4.ui.importer/src/org/eclipse/ui/internal/wizards/datatransfer/ImportProposalsWizardPage.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.ui.importer/src/org/eclipse/ui/internal/wizards/datatransfer/ImportProposalsWizardPage.java b/bundles/org.eclipse.e4.ui.importer/src/org/eclipse/ui/internal/wizards/datatransfer/ImportProposalsWizardPage.java
index 71af3ede..f04f42a9 100644
--- a/bundles/org.eclipse.e4.ui.importer/src/org/eclipse/ui/internal/wizards/datatransfer/ImportProposalsWizardPage.java
+++ b/bundles/org.eclipse.e4.ui.importer/src/org/eclipse/ui/internal/wizards/datatransfer/ImportProposalsWizardPage.java
@@ -104,8 +104,11 @@ public class ImportProposalsWizardPage extends WizardPage implements IPageChange
if (alreadyExistingProjects.contains(file)) {
return Messages.alreadyImportedAsProject_title;
}
- return ProjectConfiguratorExtensionManager.getLabel(
- ImportProposalsWizardPage.this.potentialProjects.get(file).get(0));
+ List<ProjectConfigurator> configurators = ImportProposalsWizardPage.this.potentialProjects.get(file);
+ if (configurators.isEmpty()) {
+ return ""; //$NON-NLS-1$
+ }
+ return ProjectConfiguratorExtensionManager.getLabel(configurators.get(0));
}
@Override

Back to the top