aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Damovsky <martin.damovsky@gmail.com>2017-02-18 15:26:14 +0100
committerGitHub <noreply@github.com>2017-02-18 15:26:14 +0100
commit325f247ceb7b0f60df6e061343cda89758f9ef19 (patch)
treea84274af90c9b0291e4cccf7c51127441413d590
parenta352fbf76c5ce320f88de7a2e38476d0d0547845 (diff)
parent70b0715f8fd847b001756da3707110c52e9f50b3 (diff)
downloadbbprb-325f247ceb7b0f60df6e061343cda89758f9ef19.tar.gz
Merge pull request #106 from wpieters/patch-1
Fix `null/null` repository URL - Bitbucket has changed their API recently and this change caused triggering thousands of builds
-rw-r--r--src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/Pullrequest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/Pullrequest.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/Pullrequest.java
index 96412b2..25755a4 100644
--- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/Pullrequest.java
+++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/Pullrequest.java
@@ -114,7 +114,7 @@ public class Pullrequest {
@JsonProperty("full_name")
public void setFullName(String fullName) {
// Also extract owner- and reponame
- if (name != null) {
+ if (fullName != null) {
this.ownerName = fullName.split("/")[0];
this.repositoryName = fullName.split("/")[1];
}