parent file can be null

Signed-off-by: tobiasKaminsky <[email protected]>
This commit is contained in:
tobiasKaminsky committed 2019-08-23 11:18:16 +02:00
1 parent cf536a4ef2
commit 35a625234b
1 file changed
+2 -1
@@ -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();