Fix NullPointerException

This commit is contained in:
TebbeUbben 2019-01-22 13:55:38 +01:00
parent f6d829e575
commit 6ac02f96cb

View file

@ -63,7 +63,7 @@ public class ConnectionEstablisher extends Thread {
public void close() {
try {
interrupt();
if (socket.isConnected()) socket.close();
if (socket != null && socket.isConnected()) socket.close();
} catch (IOException ignored) {
}
}