Skip to content

Commit

Permalink
Merge pull request nishio-dens#111 from jenkinsci/bug-NPE-pullrequest
Browse files Browse the repository at this point in the history
Fixed bug in PullRequest - NPE
  • Loading branch information
damovsky committed Feb 22, 2017
2 parents 9417015 + f8a81c5 commit 67e38c4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,11 @@ public static class Comment implements Comparable<Comment> {
private String updatedOn;
private String createdOn;

@Override
public int compareTo(Comment target) {
if (this.getId() > target.getId()) {
if (target == null){
return -1;
} else if (this.getId() > target.getId()) {
return 1;
} else if (this.getId().equals(target.getId())) {
return 0;
Expand Down

0 comments on commit 67e38c4

Please sign in to comment.