Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 277c3a85 authored by kai.cao's avatar kai.cao Committed by Jorge Ruesga
Browse files

[CMFileManager]Fix the FileManager Crash.

the file manager crash sometimes.

Change-Id: I775d30f4f81c97a178c93c05ae83a3336fb4caa4
(cherry picked from commit 0d31e174)
parent 985b6bc5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1145,6 +1145,9 @@ BreadcrumbListener, OnSelectionChangedListener, OnSelectionListener, OnRequestRe

        // Get the adapter and the fso
        FileSystemObjectAdapter adapter = ((FileSystemObjectAdapter)parent.getAdapter());
        if (adapter == null || position < 0 || (position >= adapter.getCount())) {
            return false;
        }
        FileSystemObject fso = adapter.getItem(position);

        // Parent directory hasn't actions