From d878c12f6c9fb697f0584d3b82fda5aec569b1bc Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Fri, 18 Dec 2020 11:00:04 +0300 Subject: [PATCH] inspection view: check updating alarm not disposed EA-237106 GitOrigin-RevId: ec2584fd6ab2915e40f3728b5d530ba18c971f80 --- .../codeInspection/ui/InspectionResultsView.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 204ba11f03cd..34b174279d46 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java @@ -539,12 +539,14 @@ public class InspectionResultsView extends JPanel implements Disposable, DataPro contents, problems::get); - myLoadingProgressPreviewAlarm.cancelAllRequests(); - myLoadingProgressPreviewAlarm.addRequest(() -> { - if (myLoadingProgressPreview != null) { - myLoadingProgressPreview.updateLoadingProgress(); - } - }, 200); + if (!myLoadingProgressPreviewAlarm.isDisposed()) { + myLoadingProgressPreviewAlarm.cancelAllRequests(); + myLoadingProgressPreviewAlarm.addRequest(() -> { + if (myLoadingProgressPreview != null) { + myLoadingProgressPreview.updateLoadingProgress(); + } + }, 200); + } } })); }