From 7d30efde0a2b4d767545a3a2318319606f727b15 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sun, 25 Mar 2012 15:46:14 +0400 Subject: [PATCH] Fix NPE --- .../com/intellij/openapi/vcs/changes/ShortDiffDetails.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ShortDiffDetails.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ShortDiffDetails.java index f02da16a136d..5c30d2039e35 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ShortDiffDetails.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ShortDiffDetails.java @@ -198,7 +198,9 @@ public class ShortDiffDetails implements RefreshablePanel, Disposable { if (myDetailsLoader != null) { Disposer.dispose(myDetailsLoader); } - myDetailsPanel.clear(); + if (myDetailsPanel != null) { + myDetailsPanel.clear(); + } myDetailsCache.clear(); }