From 40076a611083b6cfa3a7ca4add147be1449ec52f Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Wed, 4 Jul 2018 22:27:29 +0300 Subject: [PATCH] [file-history] simplify --- .../openapi/vcs/history/FileHistorySessionPartner.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()); } }); }