aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorShinsuke Nishio <nishio@densan-labs.net>2015-02-12 01:59:31 +0900
committerShinsuke Nishio <nishio@densan-labs.net>2015-02-12 01:59:31 +0900
commit99f887f98966854f7c38a46f9d68dcc2d5da16a2 (patch)
treeade886ec193ecfdcba4b3969cd77c4fa5de37657 /src/main
parent96e6eded31e6bfdcb2b4845086daff77c733a0be (diff)
downloadbbprb-99f887f98966854f7c38a46f9d68dcc2d5da16a2.tar.gz
Fix Bug; Raise Null pointer exception when not using Jenkins proxy
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/BitbucketApiClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/BitbucketApiClient.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/BitbucketApiClient.java
index 8bd1b03..b6d3155 100644
--- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/BitbucketApiClient.java
+++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/BitbucketApiClient.java
@@ -84,8 +84,8 @@ public class BitbucketApiClient {
HttpClient client = new HttpClient();
if (Jenkins.getInstance() != null) {
ProxyConfiguration proxy = Jenkins.getInstance().proxy;
- logger.info("Jenins proxy: " + proxy.name + ":" + proxy.port);
if (proxy != null) {
+ logger.info("Jenkins proxy: " + proxy.name + ":" + proxy.port);
client.getHostConfiguration().setProxy(proxy.name, proxy.port);
String username = proxy.getUserName();
String password = proxy.getPassword();