From 4553c96b54850340277cdb8fbcb58e57909caad4 Mon Sep 17 00:00:00 2001 From: irengrig Date: Fri, 11 Mar 2011 14:26:38 +0300 Subject: [PATCH] VCS: small correction to load revision content --- .../src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vcs-api/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java b/platform/vcs-api/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java index 79b77fe99463..1be3e0d3da62 100644 --- a/platform/vcs-api/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java +++ b/platform/vcs-api/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java @@ -82,8 +82,8 @@ public class VcsHistoryUtil { byte[] content = revision.getContent(); if (content == null) { revision.loadContent(); + content = revision.getContent(); } - content = revision.getContent(); if (content == null) throw new VcsException("Failed to load content for revision " + revision.getRevisionNumber().asString()); return content; }