mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
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
This commit is contained in:
parent
e334a36194
commit
a571ce7c52
@ -54,7 +54,9 @@ public class Service extends android.app.Service {
|
||||
public void onStart(Intent intent, int startId) {
|
||||
super.onStart(intent, startId);
|
||||
|
||||
if (intent != null) {
|
||||
mPassPhraseCacheTtl = intent.getIntExtra(EXTRA_TTL, 15);
|
||||
}
|
||||
if (mPassPhraseCacheTtl < 15) {
|
||||
mPassPhraseCacheTtl = 15;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user