Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java
index f5c23831..000c2454 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java
@@ -502,8 +502,8 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
}
// check if imported project(s) are nested inside existing workspace project
- String rootDirectory = rootDirectoryCombo.getText().trim();
- if(rootDirectory.length() > 0) {
+ String rootDirectory = rootDirectoryCombo != null ? rootDirectoryCombo.getText().trim() : null;
+ if(rootDirectory != null && rootDirectory.length() > 0) {
Set<IWorkingSet> workingSets = new HashSet<IWorkingSet>();
for(IContainer container : workspaceRoot.findContainersForLocationURI(new File(rootDirectory).toURI())) {
workingSets.addAll(WorkingSets.getAssignedWorkingSets(container.getProject()));

Back to the top