Skip to content

Commit efb4245

Browse files
committed
Allow null value. boolean <-> Boolean error
1 parent 2f8d317 commit efb4245

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/dockerjava/core/DefaultDockerClientConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.github.dockerjava.core;
22

33
import static com.google.common.base.Preconditions.checkNotNull;
4+
import static org.apache.commons.lang.BooleanUtils.isTrue;
45

56
import java.io.File;
67
import java.io.FileInputStream;
@@ -319,7 +320,7 @@ public static class Builder {
319320
private String apiVersion, registryUsername, registryPassword, registryEmail, registryUrl, dockerConfig,
320321
dockerCertPath;
321322

322-
private boolean dockerTlsVerify;
323+
private Boolean dockerTlsVerify;
323324

324325
private SSLConfig customSslConfig = null;
325326

@@ -419,7 +420,7 @@ public DefaultDockerClientConfig build() {
419420
SSLConfig sslConfig = null;
420421

421422
if (customSslConfig == null) {
422-
if (dockerTlsVerify) {
423+
if (isTrue(dockerTlsVerify)) {
423424
dockerCertPath = checkDockerCertPath(dockerCertPath);
424425
sslConfig = new LocalDirectorySSLConfig(dockerCertPath);
425426
}

0 commit comments

Comments
 (0)