mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge pull request #2802 from nextcloud/intentMaybeNull
intent may be null on service restart
This commit is contained in:
commit
90c8f89832
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ public class FileDownloader extends Service
|
|||
|
||||
startForeground(FOREGROUND_SERVICE_ID, mNotification);
|
||||
|
||||
if (!intent.hasExtra(EXTRA_ACCOUNT) || !intent.hasExtra(EXTRA_FILE)) {
|
||||
if (intent == null || !intent.hasExtra(EXTRA_ACCOUNT) || !intent.hasExtra(EXTRA_FILE)) {
|
||||
Log_OC.e(TAG, "Not enough information provided in intent");
|
||||
return START_NOT_STICKY;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue