[file-history] simplify

This commit is contained in:
Julia Beliaeva
2018-07-09 17:35:13 +03:00
parent 57487783b5
commit 40076a6110
@@ -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());
}
});
}