Skip to content

Commit

Permalink
Merge pull request #250 from snyk/fix/npe-with-no-project
Browse files Browse the repository at this point in the history
fix: prevent npe and user-facing error when eclipse is loaded with no projects open [IDE-845]
  • Loading branch information
andrewrobinsonhodges-snyk authored Jan 7, 2025
2 parents 0b93830 + 43fa584 commit 7d48ade
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public Path getPath() {
}

public void setPath(Path path) {
this.path = path.normalize();
if (path != null) {
this.path = path.normalize();
}
}

public String getName() {
Expand Down

0 comments on commit 7d48ade

Please sign in to comment.