Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit d3769b9

Browse files
author
Chris Paul
committed
Fix NPE in HelloSignClient.
1 parent adbdaea commit d3769b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.hellosign</groupId>
77
<artifactId>hellosign-java-sdk</artifactId>
88
<packaging>jar</packaging>
9-
<version>3.2.0</version>
9+
<version>3.2.1</version>
1010
<name>HelloSign Java SDK</name>
1111
<url>https://github.com/HelloFax/hellosign-java-sdk</url>
1212
<properties>

src/main/java/com/hellosign/sdk/HelloSignClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@ public class HelloSignClient {
157157
private HelloSignClient() {
158158
URL_HELLOSIGN = URL_API_BASE;
159159
String baseUrl = System.getProperty("hellosign.base.url");
160-
if (!baseUrl.isEmpty()) {
160+
if (baseUrl != null && !baseUrl.isEmpty()) {
161161
URL_HELLOSIGN = baseUrl;
162162
}
163163
URL_OAUTH_TOKEN = URL_OAUTH_TOKEN_PRODUCTION;
164164
String customOauthToken = System.getProperty("hellosign.oauth.base.url");
165-
if (!customOauthToken.isEmpty()) {
165+
if (customOauthToken != null && !customOauthToken.isEmpty()) {
166166
URL_OAUTH_TOKEN = customOauthToken;
167167
}
168168
String disableSslCheck = System.getProperty("hellosign.disable.ssl");
169-
if ("true".equalsIgnoreCase(disableSslCheck)) {
169+
if (disableSslCheck != null && "true".equalsIgnoreCase(disableSslCheck)) {
170170
disableStrictSSL();
171171
}
172172
initApiEndpoints();

0 commit comments

Comments
 (0)