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

Commit 1fcfc312 authored by Annie Chin's avatar Annie Chin
Browse files

Add null check in stopActionModeOrContextMenu().

Fixes: 33378283

Change-Id: I9ff6f73d8c757f8acc2672b812023b0c683b07c6
parent c5b6e4fc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -241,6 +241,9 @@ public class HistoryFragment extends Fragment {
    }

    public boolean stopActionModeOrContextMenu() {
        if (mRecyclerView == null) {
            return false;
        }
        for (int i = 0; i < mRecyclerView.getChildCount(); i++) {
            final View view = mRecyclerView.getChildAt(i);
            final HistoryAdapter.ViewHolder viewHolder =