commit e46404448bcee17eaf6c4f990376c01f1f95a3da Author: n8fr8 nathan@freitas.net Date: Wed Jan 3 08:46:56 2018 -0500
connection might be null --- .../src/main/java/org/torproject/android/service/TorService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorService.java b/orbotservice/src/main/java/org/torproject/android/service/TorService.java index 77fa1cdf..520bbe5f 100644 --- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java +++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java @@ -492,7 +492,9 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
private void requestTorRereadConfig() { try { - conn.signal("HUP"); + if (conn != null) + conn.signal("HUP"); + return; } catch (IOException e) { e.printStackTrace();
tor-commits@lists.torproject.org