Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 2491da6

Browse files
authored
Merge pull request #431 from eharris369/CW1250-addMissingNullCheck
CW Issue #1250: Add missing null check in ProjectSelectionPage validate method
2 parents a8d6498 + 2d9c622 commit 2491da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/org.eclipse.codewind.ui/src/org/eclipse/codewind/ui/internal/wizards/ProjectSelectionPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private void validate() {
268268
project = checked.length == 1 ? (IProject) checked[0] : null;
269269
// It is an error if the project is located in the codewind-data folder
270270
IPath dataPath = CoreUtil.getCodewindDataPath();
271-
if (dataPath != null && dataPath.isPrefixOf(project.getFullPath())) {
271+
if (project != null && dataPath != null && dataPath.isPrefixOf(project.getFullPath())) {
272272
errorMsg = NLS.bind(Messages.ProjectLocationInCodewindDataDirError, dataPath.toOSString());
273273
project = null;
274274
}

0 commit comments

Comments
 (0)