Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Jun 12, 2024
1 parent 2d28713 commit e847b3f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ private void refreshOutputs(IProgressMonitor monitor) throws CoreException {
continue;
}

IPath output = cp.getOutputLocation().removeFirstSegments(1);
IPath output = cp.getOutputLocation();
if (output != null) {
output = output.removeFirstSegments(1);
javaProject.getProject().getFolder(output).refreshLocal(IProject.DEPTH_INFINITE, monitor);
} else {
needRefreshDefaultOutput = true;
Expand Down

0 comments on commit e847b3f

Please sign in to comment.