Skip to content

Commit

Permalink
fix: NPE in WorkspaceHelper when project is not loaded yet (#7036)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Pasternak authored Nov 22, 2024
1 parent f31a104 commit 3f81565
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ private static Workspace resolveWorkspace(Project project, File absoluteFile) {
}

BlazeProjectData blazeProjectData = getBlazeProjectData(project);
if (blazeProjectData == null) {
return null; // Project not imported yet
}
Path bazelRootPath = getExternalSourceRoot(blazeProjectData);

logger.debug("the bazelRootPath is " + bazelRootPath);
Expand Down

0 comments on commit 3f81565

Please sign in to comment.