From fd5128170a63dcd1087b2ebf1c8a1201f6b7e844 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Fri, 2 May 2014 14:58:36 -0400 Subject: [PATCH] make sure the unbind intent is not null --- src/org/torproject/android/service/TorService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index 97e28517..13c653c1 100644 --- a/src/org/torproject/android/service/TorService.java +++ b/src/org/torproject/android/service/TorService.java @@ -186,7 +186,8 @@ public class TorService extends Service implements TorServiceConstants, TorConst @Override public boolean onUnbind(Intent intent) { - logNotice( "onUnbind Called: " + intent.getAction()); + if (intent != null) + logNotice( "onUnbind Called: " + intent.getAction()); return super.onUnbind(intent);