Skip to content

Commit

Permalink
Merge pull request #4974 from chimp1984/fix-nullpointer
Browse files Browse the repository at this point in the history
[1.5.2] Fix nullpointer
  • Loading branch information
sqrrm authored Dec 19, 2020
2 parents 245e736 + d24d05d commit c8c6633
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ private BooleanProperty torNetworkNodeShutDown() {
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) {
Expand Down

0 comments on commit c8c6633

Please sign in to comment.