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:
Álvaro Brey Vilas 2021-12-22 16:07:14 +01:00 committed by Tobias Kaminsky (Rebase PR Action)
parent f116328dfa
commit f83ccb781d

View file

@ -267,7 +267,7 @@ 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