Merge pull request #4397 from nextcloud/npeInRemove
parent file can be null
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -1 +1 @@
|
||||
412
|
||||
411
|
||||
@@ -1892,7 +1892,8 @@ public class FileDisplayActivity extends FileActivity
|
||||
setFile(getStorageManager().getFileById(removedFile.getParentId()));
|
||||
cleanSecondFragment();
|
||||
}
|
||||
if (getStorageManager().getFileById(removedFile.getParentId()).equals(getCurrentDir())) {
|
||||
OCFile parentFile = getStorageManager().getFileById(removedFile.getParentId());
|
||||
if (parentFile != null && parentFile.equals(getCurrentDir())) {
|
||||
refreshListOfFilesFragment(false);
|
||||
}
|
||||
supportInvalidateOptionsMenu();
|
||||
|
||||
Reference in new issue
Block a user