fix NPE in KeychainService

This commit is contained in:
Vincent Breitmoser
2018-07-16 10:34:31 +02:00
parent a3021bbd83
commit e7dede56ca

View File

@@ -87,7 +87,9 @@ public class KeychainService extends Service implements Progressable {
public int onStartCommand(final Intent intent, int flags, int startId) {
if (intent.getAction() != null && intent.getAction().equals(ACTION_CANCEL)) {
mActionCanceled.cancel();
if (mActionCanceled != null) {
mActionCanceled.cancel();
}
return START_NOT_STICKY;
}