summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-17 13:48:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-17 18:12:41 +0100
commit28da9177229a1d8b6d4a3ba3d84dea2166caae8d (patch)
treed2d0f99d3a6258f731e8eae19e57fd32d6d7a4ee /jurt
parent65b00b25ecf901a13a9c3c660629dfefa998e7b0 (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')
-rw-r--r--jurt/com/sun/star/lib/connections/socket/socketConnector.java4
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