diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-12-14 09:09:11 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-12-14 09:09:11 +0100 |
commit | db20d84416849f62e6ad696de227048cc26644b8 (patch) | |
tree | f14e3dda16b707089dca0da2c23db0a9a1e3f473 /container-core/src/main/java/com/yahoo/jdisc | |
parent | 6a5e9dc02ce357ef639203b78fb8affe0e0a9685 (diff) |
Prevent possible NPE.
Diffstat (limited to 'container-core/src/main/java/com/yahoo/jdisc')
-rw-r--r-- | container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SslHandshakeFailure.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SslHandshakeFailure.java b/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SslHandshakeFailure.java index 20ce15d683f..0f4bb0b54af 100644 --- a/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SslHandshakeFailure.java +++ b/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SslHandshakeFailure.java @@ -42,7 +42,7 @@ enum SslHandshakeFailure { "CONNECTION_CLOSED", e -> e.getCause() instanceof EofException && e.getCause().getCause() instanceof IOException - && e.getCause().getCause().getMessage().equals("Broken pipe")); + && "Broken pipe".equals(e.getCause().getCause().getMessage())); private final String metricName; private final String failureType; |