summaryrefslogtreecommitdiff
path: root/core/src/main/java/de
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-03-01 19:53:41 +0100
committerByteHamster <info@bytehamster.com>2021-03-01 19:53:41 +0100
commit91f613b4def52cf0f1f4779267873a940c94136b (patch)
treeedd6f622869f53acec4d0c6f6b5cc463f4f04e5f /core/src/main/java/de
parentddd6a12354b776bf0ae28b2d0ea2f1f067daf341 (diff)
downloadAntennaPod-91f613b4def52cf0f1f4779267873a940c94136b.zip
Fixed crash when notification updater is null
Diffstat (limited to 'core/src/main/java/de')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
index 44b673a4d..2e0cb705b 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
@@ -640,7 +640,9 @@ public class DownloadService extends Service {
// If the service was run for a very short time, the system may delay closing
// the notification. Set the notification text now so that a misleading message
// is not left on the notification.
- notificationUpdater.run();
+ if (notificationUpdater != null) {
+ notificationUpdater.run();
+ }
cancelNotificationUpdater();
stopForeground(true);
stopSelf();