diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistorySessionPartner.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistorySessionPartner.java index ead9b861e0a2..255069917e7a 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistorySessionPartner.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistorySessionPartner.java @@ -114,9 +114,8 @@ public class FileHistorySessionPartner implements VcsHistorySessionConsumer { } ApplicationManager.getApplication().invokeAndWait(() -> { - VcsHistorySession copy = mySession.copyWithCachedRevision(); - if (session != null && !session.getRevisionList().isEmpty()) { - myFileHistoryPanel.getHistoryPanelRefresh().consume(copy); + if (mySession != null && !mySession.getRevisionList().isEmpty()) { + myFileHistoryPanel.getHistoryPanelRefresh().consume(mySession.copyWithCachedRevision()); } }); }