[vcs-log] minor: null check

This commit is contained in:
Julia Beliaeva
2016-04-21 22:15:52 +03:00
parent 0c8b9c46b9
commit 3797ffc265
@@ -55,7 +55,9 @@ public class RefsModel implements VcsLogRefs {
TIntObjectHashMap<VirtualFile> map = new TIntObjectHashMap<VirtualFile>();
for (Integer head : heads) {
CommitId commitId = hashMap.getCommitId(head);
map.put(head, commitId.getRoot());
if (commitId != null) {
map.put(head, commitId.getRoot());
}
}
return map;
}