From e8dc717622560aab5e5077f1f7da5b20ce7f58b6 Mon Sep 17 00:00:00 2001 From: Konstantin Nisht Date: Wed, 18 Jun 2025 09:18:03 +0200 Subject: [PATCH] [threading] IJPL-192382: Add missing read access in InspectionTree GitOrigin-RevId: 12bf4cc1729f1e8f74fc845f37be16d814fcb4ce --- .../src/com/intellij/codeInspection/ui/InspectionTree.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java index 5fd8c08f9065..cc24b48a0098 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java @@ -55,8 +55,8 @@ import javax.swing.event.TreeModelEvent; import javax.swing.tree.TreePath; import java.awt.*; import java.awt.event.MouseEvent; -import java.util.List; import java.util.*; +import java.util.List; import java.util.concurrent.CancellationException; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutionException; @@ -115,7 +115,7 @@ public final class InspectionTree extends Tree { expandPath(new TreePath(myModel.getRoot())); SmartExpander.installOn(InspectionTree.this); if (!myView.isDisposed()) { - myView.syncRightPanel(); + ReadAction.run(() -> myView.syncRightPanel()); } }); }