EA-80238 - IAE: DialogWrapperPeerImpl.<init> appcode/146.564 clion/146.566 dbe/146.565 idea/146.562 phpstorm/146.563 pycharm/146.570 pycharm/146.572 rubymine/146.568 webstorm/146.573
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Sun, 13 Mar 2016 21:51:03 +0000 (00:51 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Sun, 13 Mar 2016 21:51:03 +0000 (00:51 +0300)
platform/lang-impl/src/com/intellij/webcore/packaging/ManagePackagesDialog.java

index 3a3d0a526a4d76ed47796ca4ddbd86db7ceabf05..08e3462591cb08ca27a809b54027f995d54f991a 100644 (file)
@@ -336,7 +336,9 @@ public class ManagePackagesDialog extends DialogWrapper {
           application.invokeLater(new Runnable() {
             @Override
             public void run() {
-              Messages.showErrorDialog(myMainPanel, "Error loading package list:" + e.getMessage(), "Packages");
+              if (myMainPanel.isShowing()) {
+                Messages.showErrorDialog(myMainPanel, "Error loading package list:" + e.getMessage(), "Packages");
+              }
               setDownloadStatus(false);
             }
           }, ModalityState.any());