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

Commit 760bfe7b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "DocumentsUI: Fix NullPointerException in DocumentInfo"

parents 03305857 5c72c24b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -527,10 +527,12 @@ public class DirectoryFragment extends Fragment {
            for (int i = 0; i < size; i++) {
                if (checked.valueAt(i)) {
                    final Cursor cursor = mAdapter.getItem(checked.keyAt(i));
                    if (cursor != null) {
                        final DocumentInfo doc = DocumentInfo.fromDirectoryCursor(cursor);
                        docs.add(doc);
                    }
                }
            }

            final int id = item.getItemId();
            if (id == R.id.menu_open) {