compiler: fix possible exceptions in DummyCompileContext::getProgressIndicator

This commit is contained in:
nik
2019-02-01 12:59:51 +03:00
parent 07e8f9dacd
commit c708c57e50
@@ -17,6 +17,7 @@ package com.intellij.openapi.compiler;
import com.intellij.openapi.application.ReadAction;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.progress.DumbProgressIndicator;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManager;
@@ -91,7 +92,7 @@ public class DummyCompileContext implements CompileContext {
@Override
@NotNull
public ProgressIndicator getProgressIndicator() {
return null;
return DumbProgressIndicator.INSTANCE;
}
@Override