check file existence before

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-09-05 09:27:34 +02:00 committed by Alper Öztürk
parent aec0838977
commit 2ec0f2950a

View file

@ -212,7 +212,9 @@ public class OCFileListBottomSheetDialog extends BottomSheetDialog implements In
}
private void filterActionsForOfflineOperations() {
if (file == null || !file.isOfflineOperation() || file.isRootDirectory()) {
if (file == null) return;
if (!file.isOfflineOperation() || file.isRootDirectory()) {
return;
}