Skip to content

Commit

Permalink
fix: handle the null case of the ssl port
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezk committed Jun 21, 2023
1 parent 755ca8f commit f746df5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ public void print(@NotNull String s, @NotNull ConsoleViewContentType contentType
// Use the configured port if the port is not found in the log
if (portNotFound) {
this.httpPorts.add(String.valueOf(configuration.getPort()));
this.httpsPorts.add(String.valueOf(configuration.getSslPort()));
Integer sslPort = configuration.getSslPort();
if (sslPort != null) {
this.httpsPorts.add(String.valueOf(sslPort));
}
}

List<Url> urls = buildServerUrls();
Expand Down

0 comments on commit f746df5

Please sign in to comment.