diff options
-rwxr-xr-x[-rw-r--r--] | src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java b/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java index 88fd47b7..d24b091f 100644..100755 --- a/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java +++ b/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java @@ -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 |