solved NPE issue for null intent

This commit is contained in:
Nathan Freitas 2012-01-16 23:41:25 -05:00
parent 512f3d6dbd
commit 93f242d66b
1 changed files with 1 additions and 1 deletions

View File

@ -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); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);