diff --git a/plugins/git4idea/src/git4idea/history/wholeTree/DetailsCache.java b/plugins/git4idea/src/git4idea/history/wholeTree/DetailsCache.java index 7977082a081a..5db4495f81cd 100644 --- a/plugins/git4idea/src/git4idea/history/wholeTree/DetailsCache.java +++ b/plugins/git4idea/src/git4idea/history/wholeTree/DetailsCache.java @@ -101,9 +101,11 @@ public class DetailsCache { } } + @NotNull public List getBranches(final VirtualFile root, final AbstractHash hash) { synchronized (myLock) { - return myBranches.get(new Pair(root, hash)); + List branches = myBranches.get(new Pair(root, hash)); + return branches == null ? Collections.emptyList() : branches; } }