[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] solved NPE issue for null intent
commit 93f242d66bf8f2cfd93087ddb38b320ea37830ef
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits