mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
intent may be null on service restart
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
9d6592ea87
commit
f78a187515
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