mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Fix NPE in BackupFragment when fragment exits while refresh is happening
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
f116328dfa
commit
f83ccb781d
1 changed files with 2 additions and 2 deletions
|
@ -267,11 +267,11 @@ public class BackupFragment extends FileFragment implements DatePickerDialog.OnD
|
|||
|
||||
@Override
|
||||
protected void onPostExecute(Boolean result) {
|
||||
if (result) {
|
||||
if (result && binding != null) {
|
||||
OCFile backupFolder = storageManager.getFileByPath(backupFolderPath);
|
||||
|
||||
List<OCFile> backupFiles = storageManager
|
||||
.getFolderContent(backupFolder, false);
|
||||
.getFolderContent(backupFolder, false);
|
||||
|
||||
Collections.sort(backupFiles, new AlphanumComparator<>());
|
||||
|
||||
|
|
Loading…
Reference in a new issue