diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-17 13:48:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-17 18:12:41 +0100 |
commit | 28da9177229a1d8b6d4a3ba3d84dea2166caae8d (patch) | |
tree | d2d0f99d3a6258f731e8eae19e57fd32d6d7a4ee /jurt/com/sun/star | |
parent | 65b00b25ecf901a13a9c3c660629dfefa998e7b0 (diff) |
cid#1448367 Explicit null dereferenced
Change-Id: I1762ad30ba03ee1d06f85023a42646131a7ccde9
Reviewed-on: https://gerrit.libreoffice.org/83018
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'jurt/com/sun/star')
-rw-r--r-- | jurt/com/sun/star/lib/connections/socket/socketConnector.java | 4 |
1 files changed, 4 insertions, 0 deletions
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 |