diff options
Diffstat (limited to 'src/org/thialfihar/android/apg/Service.java')
-rw-r--r-- | src/org/thialfihar/android/apg/Service.java | 4 |
1 files changed, 3 insertions, 1 deletions
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;
}
|