Skip to content

Commit

Permalink
Merge pull request #279 from codesquad-members-2023-team6/dev
Browse files Browse the repository at this point in the history
be: null exception 처리
  • Loading branch information
new-pow committed Jun 1, 2023
2 parents 512b5aa + a19143e commit d1e89ee
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ public Issue toIssue() {

private List<Labeling> getLabelingMap (List<LabelSummary> labels) {
List<Labeling> labelings= new ArrayList<>();
labels.stream().map(e -> new Labeling(e.getLabelIdx()))
.forEach(labelings::add);
if (!labels.isEmpty()) {
labels.stream().map(e -> new Labeling(e.getLabelIdx()))
.forEach(labelings::add);
}
return labelings;
}

Expand Down

0 comments on commit d1e89ee

Please sign in to comment.