From 93f242d66bf8f2cfd93087ddb38b320ea37830ef Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Mon, 16 Jan 2012 23:41:25 -0500 Subject: [PATCH] solved NPE issue for null intent --- src/org/torproject/android/service/TorService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index 099024f1..01324189 100644 --- a/src/org/torproject/android/service/TorService.java +++ b/src/org/torproject/android/service/TorService.java @@ -255,7 +255,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst - if (intent.getAction()!=null && intent.getAction().equals("onboot")) + if (intent != null && intent.getAction()!=null && intent.getAction().equals("onboot")) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);