Commit fbb55c13 authored by 叶剑飞's avatar 叶剑飞

fix 空指针

parent d7ac4cbf
......@@ -56,10 +56,10 @@ public class GitlabMergeRequestService {
List<Long> mqidList = mqList.stream().map(GitlabMergeRequest::getId).collect(Collectors.toList());
List<Object[]> notes = gitlabMergeRequestDao.listNoteByMqid(mqidList);
if (notes.isEmpty()) {
if (mqidList.isEmpty()) {
return;
}
List<Object[]> notes = gitlabMergeRequestDao.listNoteByMqid(mqidList);
Map<Long, List<Object[]>> mapNotes = notes.stream().collect(Collectors.groupingBy(note -> {
return StringUtil.getNullLong(note[1]);
}));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment