DBE-11839 Fix exception that occurs when user drags service view tab to new window...
authorLiudmila Kornilova <kornilova203@gmail.com>
Tue, 27 Oct 2020 11:14:35 +0000 (14:14 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 27 Oct 2020 11:14:35 +0000 (11:14 +0000)
GitOrigin-RevId: 0195eaaf21dd984ba95f66c76e09ee6162399f3d

platform/execution-impl/src/com/intellij/execution/ui/layout/impl/GridCellImpl.java

index 5b92a522a690a5d23c82f24b405505dcac1bd077..57cf46b7f92df02041975e882d9493ba30e81c72 100644 (file)
@@ -329,7 +329,7 @@ public final class GridCellImpl implements GridCell {
     service.setSize(getDimensionKey(), size, myContext.getProject());
     if (myContext.getWindow() != 0) {
       final Window frame = SwingUtilities.getWindowAncestor(myPlaceholder);
-      if (frame != null) {
+      if (frame != null && frame.isShowing()) {
         service.setLocation(getDimensionKey(), frame.getLocationOnScreen());
       }
     }