Преглед на файлове

Fix NPE regression in FileDownloader

Fixes #9349

Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
Chris Narkiewicz преди 3 години
родител
ревизия
a84fc6297d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/owncloud/android/files/services/FileDownloader.java

+ 1 - 1
src/main/java/com/owncloud/android/files/services/FileDownloader.java

@@ -483,7 +483,7 @@ public class FileDownloader extends Service
 
                 } finally {
                     Pair<DownloadFileOperation, String> removeResult = mPendingDownloads.removePayload(
-                        currentUser.get().getAccountName(), mCurrentDownload.getRemotePath());
+                        mCurrentDownload.getUser().getAccountName(), mCurrentDownload.getRemotePath());
 
                     if (downloadResult == null) {
                         downloadResult = new RemoteOperationResult(new RuntimeException("Error downloading…"));