summaryrefslogtreecommitdiff
path: root/ridljar
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2020-09-25 11:58:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-25 17:56:33 +0200
commitb6a26170b6145f7af057538f38fc656823726a0d (patch)
tree610ae004c30a0eac39753f724e16b6a7f5f3b215 /ridljar
parentbd40e50bced36fe0aec70214f1c081955ac0acdd (diff)
socket cannot be null at this point
Change-Id: I2027478d1dfa64a3841027d94d8eaa140fe319dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103382 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ridljar')
-rw-r--r--ridljar/com/sun/star/lib/connections/socket/socketConnector.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/ridljar/com/sun/star/lib/connections/socket/socketConnector.java b/ridljar/com/sun/star/lib/connections/socket/socketConnector.java
index 484ffd135e92..c9a15d1f5d4a 100644
--- a/ridljar/com/sun/star/lib/connections/socket/socketConnector.java
+++ b/ridljar/com/sun/star/lib/connections/socket/socketConnector.java
@@ -158,11 +158,9 @@ public final class socketConnector implements XConnector {
con = new SocketConnection(connectionDescription, socket);
} catch (IOException e) {
- if (socket != null) {
- try {
- socket.close();
- } catch(IOException ioException) {
- }
+ try {
+ socket.close();
+ } catch(IOException ioException) {
}
throw new NoConnectException(e);
}