From 3c73dcd83e547e0be6f59961f64d5ea160ebdd69 Mon Sep 17 00:00:00 2001 From: Allan Burdajewicz Date: Mon, 29 Jun 2020 22:00:31 +1000 Subject: [PATCH] [JENKINS-57775][JENKINS-62780] Add CheckForNull for destination commit Co-authored-by: Liam Newman --- .../pullrequest/BitbucketPullRequestValueDestination.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/client/pullrequest/BitbucketPullRequestValueDestination.java b/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/client/pullrequest/BitbucketPullRequestValueDestination.java index be30ad3ac..7d6b5ffa7 100644 --- a/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/client/pullrequest/BitbucketPullRequestValueDestination.java +++ b/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/client/pullrequest/BitbucketPullRequestValueDestination.java @@ -45,7 +45,7 @@ public class BitbucketPullRequestValueDestination implements BitbucketPullReques @JsonCreator public BitbucketPullRequestValueDestination(@NonNull @JsonProperty("repository") BitbucketCloudRepository repository, @JsonProperty("branch") BitbucketCloudBranch branch, - @JsonProperty("commit") BitbucketCloudCommit commit) { + @CheckForNull @JsonProperty("commit") BitbucketCloudCommit commit) { this.repository = repository; this.branch = branch; this.commit = commit;