Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-medeiros committed Feb 25, 2016
1 parent 11220cc commit 70d3ef5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected ProcessBuilder prepareProcessBuilder(Path goSDKPath, GoEnvironment goE
}

protected Path getGofmtLocation(GoEnvironment goEnv) throws CommonException {
if(GoToolPreferences.GOFMT_Path.getPreference().get().isEmpty()) {
if(GoToolPreferences.GOFMT_Path.getPreference().get() == null) {
return getGofmtLocationFromGoRoot(goEnv.getGoRoot_Location()).toPath();
}
return GoToolPreferences.GOFMT_Path.getDerivedValue(project);
Expand Down

0 comments on commit 70d3ef5

Please sign in to comment.