From a571ce7c5222d1f2246acdfada7c95e48a170dd4 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Fri, 4 Jun 2010 21:52:20 +0000 Subject: [PATCH] make sure the Intent passed to Service.onStart() is not null, not sure why it would be, but saw such an exception on the market --- src/org/thialfihar/android/apg/Service.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thialfihar/android/apg/Service.java b/src/org/thialfihar/android/apg/Service.java index 2c8fd8496..4457274ff 100644 --- a/src/org/thialfihar/android/apg/Service.java +++ b/src/org/thialfihar/android/apg/Service.java @@ -54,7 +54,9 @@ public class Service extends android.app.Service { public void onStart(Intent intent, int startId) { super.onStart(intent, startId); - mPassPhraseCacheTtl = intent.getIntExtra(EXTRA_TTL, 15); + if (intent != null) { + mPassPhraseCacheTtl = intent.getIntExtra(EXTRA_TTL, 15); + } if (mPassPhraseCacheTtl < 15) { mPassPhraseCacheTtl = 15; }