mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
fix possible NPE on stopping contact backup job (#4387)
fix possible NPE on stopping contact backup job
This commit is contained in:
commit
331edcb69c
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ public class ContactsPreferenceActivity extends FileActivity implements FileFrag
|
|||
|
||||
for (JobRequest jobRequest : jobs) {
|
||||
PersistableBundleCompat extras = jobRequest.getExtras();
|
||||
if (extras.getString(ContactsBackupJob.ACCOUNT, "").equalsIgnoreCase(account.name) &&
|
||||
if (extras != null && extras.getString(ContactsBackupJob.ACCOUNT, "").equalsIgnoreCase(account.name) &&
|
||||
jobRequest.isPeriodic()) {
|
||||
jobManager.cancel(jobRequest.getJobId());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue