From 0c257321a0afab0e1ff58e12dcf4e27f2b1e96ba Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Tue, 20 Sep 2016 20:00:58 +0300 Subject: [PATCH] inspection view: do not add listeners in test mode --- .../com/intellij/codeInspection/ui/InspectionResultsView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java index 5135de979590..9e9e7c6479e5 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java @@ -267,6 +267,9 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren } private void initTreeListeners() { + if (ApplicationManager.getApplication().isUnitTestMode()) { + return; + } myTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { @Override public void valueChanged(TreeSelectionEvent e) {