diff --git a/platform/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/ProblemsViewPanel.java b/platform/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/ProblemsViewPanel.java index 2e32670eabb9..9256ce1aaebe 100644 --- a/platform/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/ProblemsViewPanel.java +++ b/platform/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/ProblemsViewPanel.java @@ -124,7 +124,7 @@ public class ProblemsViewPanel extends OnePixelSplitter implements Disposable, D @Override public boolean isEnabled() { VirtualFile file = getSelectedFile(); - return file != null && ProblemsView.getDocument(getProject(), file) != null; + return file != null && file.isValid() && ProblemsView.getDocument(getProject(), file) != null; } @Override