Skip to content

Commit

Permalink
webhook: Fix webhook bug yona-projects#371 (compensate the defect of c…
Browse files Browse the repository at this point in the history
…cac98c)

No milestone 으로 변경시 발생하는 에러에 대한 대응 코드 추가
  • Loading branch information
hongwonjun committed Aug 16, 2018
1 parent 998b465 commit 22f27f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/NotificationEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,9 @@ public static NotificationEvent afterIssueLabelChanged(String addedLabels, Strin
}

public static NotificationEvent afterMilestoneChanged(Long oldMilestoneId, Issue issue) {
issue.milestone.refresh();
if (issue.milestone != null) {
issue.milestone.refresh();
}
webhookRequest(ISSUE_MILESTONE_CHANGED, issue, false);

NotificationEvent notiEvent = createFromCurrentUser(issue);
Expand Down

0 comments on commit 22f27f0

Please sign in to comment.