mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] minor: null check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user