aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r--src/main/java/de/pixart/messenger/services/ExportBackupService.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/ExportBackupService.java b/src/main/java/de/pixart/messenger/services/ExportBackupService.java
index ade2ca685..6bb10544f 100644
--- a/src/main/java/de/pixart/messenger/services/ExportBackupService.java
+++ b/src/main/java/de/pixart/messenger/services/ExportBackupService.java
@@ -233,7 +233,10 @@ public class ExportBackupService extends Service {
public int onStartCommand(Intent intent, int flags, int startId) {
if (running.compareAndSet(false, true)) {
new Thread(() -> {
- final Bundle extras = intent.getExtras();
+ Bundle extras = null;
+ if (intent != null && intent.getExtras() != null) {
+ extras = intent.getExtras();
+ }
boolean notify = false;
if (extras != null && extras.containsKey("NOTIFY_ON_BACKUP_COMPLETE")) {
notify = extras.getBoolean("NOTIFY_ON_BACKUP_COMPLETE");