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

Commit 0d31e174 authored by kai.cao's avatar kai.cao
Browse files

[CMFileManager]Fix the FileManager Crash.

the file manager crash sometimes.

Change-Id: I775d30f4f81c97a178c93c05ae83a3336fb4caa4
parent 41232db9
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