Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
atsky committed Nov 11, 2014
1 parent 4601b75 commit ed9099a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/org/jetbrains/haskell/external/GhcModi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class GhcModi(val project: Project, val settings: HaskellSettings) : Proj
fun startProcess() {
assert(process == null)
val sdk = ProjectRootManager.getInstance(project).getProjectSdk()
val ghcHome = if (sdk.getSdkType() is HaskellSdkType) {
val ghcHome = if (sdk != null && sdk.getSdkType() is HaskellSdkType) {
sdk.getHomePath() + File.separator + "bin"
} else {
null
Expand Down

0 comments on commit ed9099a

Please sign in to comment.