From 1bacc05a246bc93770780f4746c34e402312ef33 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Tue, 7 Jul 2020 12:56:03 -0500 Subject: [PATCH] fix 1 "may be null" --- src/main/java/org/webbitserver/netty/NettyWebServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/webbitserver/netty/NettyWebServer.java b/src/main/java/org/webbitserver/netty/NettyWebServer.java index 6ee530e..c719fb2 100644 --- a/src/main/java/org/webbitserver/netty/NettyWebServer.java +++ b/src/main/java/org/webbitserver/netty/NettyWebServer.java @@ -181,7 +181,7 @@ public ChannelPipeline getPipeline() throws Exception { long timestamp = timestamp(); Object id = nextId(); ChannelPipeline pipeline = pipeline(); - if (sslContext == null) { + if (sslContext != null) { SSLEngine sslEngine = sslContext.createSSLEngine(); sslEngine.setUseClientMode(false); SslHandler ssl = new SslHandler(sslEngine);