mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Fix nullpointer
A Nullpointer can happen if app get shut down very early.
This commit is contained in:
parent
e2c8e4dff6
commit
d24d05d08d
@ -184,7 +184,9 @@ public class TorNetworkNode extends NetworkNode {
|
||||
log.info("Tor shut down completed");
|
||||
} else {
|
||||
log.info("Tor has not been created yet. We cancel the torStartupFuture.");
|
||||
torStartupFuture.cancel(true);
|
||||
if (torStartupFuture != null) {
|
||||
torStartupFuture.cancel(true);
|
||||
}
|
||||
log.info("torStartupFuture cancelled");
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
|
Loading…
Reference in New Issue
Block a user