Skip to content

Commit 339a260

Browse files
author
mpv1989
committed
Add null check
1 parent f21a574 commit 339a260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/arangodb/internal/http/HttpCommunication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private static HttpRequestBase requestWithBody(
290290
}
291291

292292
private String buildBaseUrl(final Host host) {
293-
return (useSsl ? "https://" : "http://") + host.getHost() + ":" + host.getPort();
293+
return (useSsl != null && useSsl ? "https://" : "http://") + host.getHost() + ":" + host.getPort();
294294
}
295295

296296
private static String buildUrl(final String baseUrl, final Request request) throws UnsupportedEncodingException {

0 commit comments

Comments
 (0)