mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
es_aware_run_make: fix possible npe if ExecutionEnvironmentProvider is absent
This commit is contained in:
+5
-2
@@ -166,9 +166,12 @@ public final class ExecutionEnvironmentBuilder {
|
||||
|
||||
@NotNull
|
||||
public ExecutionEnvironment build() {
|
||||
ExecutionEnvironment environment =
|
||||
ServiceManager.getService(myProject, ExecutionEnvironmentProvider.class).createExecutionEnvironment(
|
||||
ExecutionEnvironment environment = null;
|
||||
ExecutionEnvironmentProvider environmentProvider = ServiceManager.getService(myProject, ExecutionEnvironmentProvider.class);
|
||||
if (environmentProvider != null) {
|
||||
environment = environmentProvider.createExecutionEnvironment(
|
||||
myProject, myRunProfile, myExecutor, myTarget, myRunnerSettings, myConfigurationSettings, myRunnerAndConfigurationSettings);
|
||||
}
|
||||
|
||||
if (environment == null && myRunner == null) {
|
||||
if (myRunnerId == null) {
|
||||
|
||||
Reference in New Issue
Block a user