From 2d9c6228dd9a04ce86a09379e85d6e9a3b5aa4a2 Mon Sep 17 00:00:00 2001 From: Erin Harris Date: Fri, 22 Nov 2019 11:37:41 -0500 Subject: [PATCH] CW Issue #1250: Add missing null check in ProjectSelectionPage validate method --- .../codewind/ui/internal/wizards/ProjectSelectionPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/org.eclipse.codewind.ui/src/org/eclipse/codewind/ui/internal/wizards/ProjectSelectionPage.java b/dev/org.eclipse.codewind.ui/src/org/eclipse/codewind/ui/internal/wizards/ProjectSelectionPage.java index e62ede278..d1e87a840 100644 --- a/dev/org.eclipse.codewind.ui/src/org/eclipse/codewind/ui/internal/wizards/ProjectSelectionPage.java +++ b/dev/org.eclipse.codewind.ui/src/org/eclipse/codewind/ui/internal/wizards/ProjectSelectionPage.java @@ -268,7 +268,7 @@ private void validate() { project = checked.length == 1 ? (IProject) checked[0] : null; // It is an error if the project is located in the codewind-data folder IPath dataPath = CoreUtil.getCodewindDataPath(); - if (dataPath != null && dataPath.isPrefixOf(project.getFullPath())) { + if (project != null && dataPath != null && dataPath.isPrefixOf(project.getFullPath())) { errorMsg = NLS.bind(Messages.ProjectLocationInCodewindDataDirError, dataPath.toOSString()); project = null; }