inspection view: check updating alarm not disposed EA-237106

GitOrigin-RevId: ec2584fd6ab2915e40f3728b5d530ba18c971f80
This commit is contained in:
Dmitry Batkovich
2020-12-18 12:40:36 +00:00
committed by intellij-monorepo-bot
parent 3c17b8c2f2
commit d878c12f6c
@@ -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);
}
}
}));
}