Skip to content

Commit

Permalink
webhook: Fix webhook bug #371 (compensate the defect of ccac98c)
Browse files Browse the repository at this point in the history
No milestone 으로 변경시 발생하는 에러에 대한 대응 코드 추가
  • Loading branch information
hongwonjun authored and doortts committed Oct 26, 2018
1 parent 2d74ac8 commit 44eaecc
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 44eaecc

Please sign in to comment.