From ec820063cfa676e635f28c7c28cd35e2eff2c293 Mon Sep 17 00:00:00 2001 From: Alexander Koshevoy Date: Thu, 31 May 2018 13:00:04 +0300 Subject: [PATCH] PY-18029 NPE on myConsoleView.requestFocus() fixed --- .../com/jetbrains/python/console/PydevConsoleRunnerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/console/PydevConsoleRunnerImpl.java b/python/src/com/jetbrains/python/console/PydevConsoleRunnerImpl.java index e9434eaf9b5b..77d5d45f9084 100644 --- a/python/src/com/jetbrains/python/console/PydevConsoleRunnerImpl.java +++ b/python/src/com/jetbrains/python/console/PydevConsoleRunnerImpl.java @@ -534,7 +534,7 @@ public class PydevConsoleRunnerImpl implements PydevConsoleRunner { private void initAndRun(@NotNull GeneralCommandLine generalCommandLine) throws ExecutionException { // Create Server process final Process process = createProcess(generalCommandLine); - UIUtil.invokeLaterIfNeeded(() -> { + UIUtil.invokeAndWaitIfNeeded((Runnable)() -> { // Init console view myConsoleView = createConsoleView(); if (myConsoleView != null) {