Fix Already disposed IDEA-76765
authorKirill Likhodedov <Kirill.Likhodedov@jetbrains.com>
Wed, 1 Aug 2012 11:38:17 +0000 (15:38 +0400)
committerKirill Likhodedov <Kirill.Likhodedov@jetbrains.com>
Wed, 1 Aug 2012 11:38:17 +0000 (15:38 +0400)
platform/platform-impl/src/com/intellij/execution/ExecutableValidator.java

index 93f6ff54d5c9aca52bdd922c4c4fd49d788509d2..c5159e313cc4494a84a275e8c42ebb66bacdac4d 100644 (file)
@@ -144,6 +144,9 @@ public abstract class ExecutableValidator {
    * @return true if executable was valid, false - if not valid (and notification was shown in that case).
    */
   public boolean checkExecutableAndNotifyIfNeeded() {
+    if (myProject.isDisposed()) {
+      return false;
+    }
     if (!isExecutableValid(getCurrentExecutable())) {
       showExecutableNotConfiguredNotification();
       return false;