Skip to content

Commit

Permalink
Merge pull request #46 from pedro-hos/issue-45
Browse files Browse the repository at this point in the history
[BUG] - java.lang.NullPointerException when calling comand with no pa…
  • Loading branch information
gabrielpadilh4 authored Dec 27, 2023
2 parents 5d736d2 + b90e54c commit 555c3ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.util.Objects;

import javax.net.ServerSocketFactory;
import javax.net.ssl.SSLServerSocket;
Expand Down Expand Up @@ -127,7 +128,7 @@ public static void logSSLHandshake(SslCliParams sslCliParams) {
Server server = parseSslCliParams(sslCliParams);

if (sslCliParams.getMode().equals("client")) {
if (!sslCliParams.getUrl().isBlank()) {
if (Objects.nonNull(sslCliParams.getUrl()) && !sslCliParams.getUrl().isBlank()) {
openUrlSocket(sslCliParams.getUrl());
return;
}
Expand Down

0 comments on commit 555c3ee

Please sign in to comment.