summaryrefslogtreecommitdiff
path: root/core/src/main/java/de
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2021-03-01 21:03:24 +0100
committerGitHub <noreply@github.com>2021-03-01 21:03:24 +0100
commitade39d18e08669c9a62908098a1be072c810ee39 (patch)
treeedd6f622869f53acec4d0c6f6b5cc463f4f04e5f /core/src/main/java/de
parentddd6a12354b776bf0ae28b2d0ea2f1f067daf341 (diff)
parent91f613b4def52cf0f1f4779267873a940c94136b (diff)
downloadAntennaPod-ade39d18e08669c9a62908098a1be072c810ee39.zip
Merge pull request #4979 from ByteHamster/fix-notificationupdater
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();