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;