[cxf] branch master updated: avoid NPE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[cxf] branch master updated: avoid NPE

deki
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 <[hidden email]>
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();
+        }
     }
 
 }