Skip to content

Commit

Permalink
fixes NPE while creating HTTP client
Browse files Browse the repository at this point in the history
  • Loading branch information
soasta-ltyler committed May 31, 2016
1 parent 7693aee commit 1999389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/soasta/jenkins/CloudTestServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public VersionNumber getBuildNumber() throws IOException {
private GenericSelfClosingHttpClient createClient() throws IOException {

return new GenericSelfClosingHttpClient(new HttpClientSettings()
.setKeyStore(HttpClientSettings.loadKeyStore(keyStoreLocation, keyStorePassword.getPlainText()))
.setKeyStore(HttpClientSettings.loadKeyStore(keyStoreLocation, Secret.toString(keyStorePassword)))
.setKeyStorePassword(keyStorePassword == null || keyStorePassword.getPlainText().isEmpty() ? null : keyStorePassword.getPlainText())
.setUrl(url)
.setTrustSelfSigned(trustSelfSigned));
Expand Down

0 comments on commit 1999389

Please sign in to comment.