You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by de...@apache.org on 2020/07/27 05:49:43 UTC

[cxf] branch master updated: avoid NPE

This is an automated email from the ASF dual-hosted git repository.

deki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 4dfd510  avoid NPE
4dfd510 is described below

commit 4dfd51045436d16f94c422d20f930244bb819e2c
Author: Dennis Kieselhorst <de...@apache.org>
AuthorDate: Mon Jul 27 07:49:23 2020 +0200

    avoid NPE
---
 .../http/netty/server/integration/SSLNettySpringServerTest.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/rt/transports/http-netty/netty-server/src/test/java/org/apache/cxf/transport/http/netty/server/integration/SSLNettySpringServerTest.java b/rt/transports/http-netty/netty-server/src/test/java/org/apache/cxf/transport/http/netty/server/integration/SSLNettySpringServerTest.java
index 53f0ee6..677bb77 100644
--- a/rt/transports/http-netty/netty-server/src/test/java/org/apache/cxf/transport/http/netty/server/integration/SSLNettySpringServerTest.java
+++ b/rt/transports/http-netty/netty-server/src/test/java/org/apache/cxf/transport/http/netty/server/integration/SSLNettySpringServerTest.java
@@ -69,7 +69,9 @@ public class SSLNettySpringServerTest extends SSLNettyServerTest {
             ep.stop();
         }
         ep = null;
-        context.close();
+        if (context != null) {
+            context.close();
+        }
     }
 
 }