Fix another NPE in FileDownloader

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey Vilas 2021-11-24 10:27:30 +01:00 committed by Álvaro Brey (Rebase PR Action)
parent a84fc6297d
commit dd07ea17dd

View file

@ -105,7 +105,7 @@ public class FileDownloader extends Service
private ServiceHandler mServiceHandler;
private IBinder mBinder;
private OwnCloudClient mDownloadClient;
private Optional<User> currentUser;
private Optional<User> currentUser = Optional.empty();
private FileDataStorageManager mStorageManager;
private IndexedForest<DownloadFileOperation> mPendingDownloads = new IndexedForest<>();