EA-80238 - IAE: DialogWrapperPeerImpl.<init>
[idea/community.git] / 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());