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

Commit

Permalink
Merge pull request #431 from eharris369/CW1250-addMissingNullCheck
Browse files Browse the repository at this point in the history
CW Issue #1250: Add missing null check in ProjectSelectionPage validate method
  • Loading branch information
eharris369 authored Nov 22, 2019
2 parents a8d6498 + 2d9c622 commit 2491da6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2491da6

Please sign in to comment.