Revert "fix UOE from maven plugin in headless mode" master
authorVladislav.Soroka <Vladislav.Soroka@jetbrains.com>
Sun, 25 Oct 2020 15:42:39 +0000 (18:42 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Sun, 25 Oct 2020 15:43:06 +0000 (15:43 +0000)
This reverts commit 1baeed79

GitOrigin-RevId: 75f341aa345d3abcf9a9dfa24d99623d8dc1bd6f

platform/lang-impl/src/com/intellij/build/BuildView.java

index cb4618d40884d4dd3479a43126d076fbdabdb9e4..804d902834a818cb5b2b8371dde6955086af5b9a 100644 (file)
@@ -111,8 +111,6 @@ public class BuildView extends CompositeView<ExecutionConsole>
   }
 
   private void onStartBuild(@NotNull Object buildId, @NotNull StartBuildEvent startBuildEvent) {
-    if (ApplicationManager.getApplication().isHeadlessEnvironment()) return;
-
     if (startBuildEvent instanceof StartBuildEventImpl) {
       myViewSettingsProvider = ((StartBuildEventImpl)startBuildEvent).getBuildViewSettingsProvider();
     }
@@ -133,7 +131,7 @@ public class BuildView extends CompositeView<ExecutionConsole>
     }
     ExecutionConsole executionConsole = myExecutionConsole;
     if (executionConsole != null) {
-      executionConsole. getComponent(); //create editor to be able to add console editor actions
+      executionConsole.getComponent(); //create editor to be able to add console editor actions
       if (myViewSettingsProvider.isExecutionViewHidden()) {
         addViewAndShowIfNeeded(executionConsole, CONSOLE_VIEW_NAME, myViewManager.isConsoleEnabledByDefault());
       }