Merge pull request #4397 from nextcloud/npeInRemove

parent file can be null
This commit is contained in:
Andy Scherzinger authored and GitHub committed 2019-08-23 12:13:48 +02:00
commit ed75cffa58
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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();