From 28da9177229a1d8b6d4a3ba3d84dea2166caae8d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 17 Nov 2019 13:48:59 +0000 Subject: cid#1448367 Explicit null dereferenced MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1762ad30ba03ee1d06f85023a42646131a7ccde9 Reviewed-on: https://gerrit.libreoffice.org/83018 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- jurt/com/sun/star/lib/connections/socket/socketConnector.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'jurt') diff --git a/jurt/com/sun/star/lib/connections/socket/socketConnector.java b/jurt/com/sun/star/lib/connections/socket/socketConnector.java index 68fdf00c1149..484ffd135e92 100644 --- a/jurt/com/sun/star/lib/connections/socket/socketConnector.java +++ b/jurt/com/sun/star/lib/connections/socket/socketConnector.java @@ -143,6 +143,10 @@ public final class socketConnector implements XConnector { throw new NoConnectException(e); } } + + if (socket == null) + throw new ConnectionSetupException("no socket"); + XConnection con; try { // we enable tcpNoDelay for loopback connections because -- cgit