From 91f613b4def52cf0f1f4779267873a940c94136b Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 1 Mar 2021 19:53:41 +0100 Subject: Fixed crash when notification updater is null --- .../de/danoeh/antennapod/core/service/download/DownloadService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/src/main/java/de') 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(); -- cgit v1.2.3