[tor-commits] [orbot/master] solved NPE issue for null intent

n8fr8 at torproject.org n8fr8 at torproject.org
Thu Jan 26 01:12:35 UTC 2012


commit 93f242d66bf8f2cfd93087ddb38b320ea37830ef
Author: Nathan Freitas <nathan at freitas.net>
Date:   Mon Jan 16 23:41:25 2012 -0500

    solved NPE issue for null intent
---
 src/org/torproject/android/service/TorService.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 099024f..0132418 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);





More information about the tor-commits mailing list