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

Commit 7552f341 authored by Christine Franks's avatar Christine Franks
Browse files

Prevent crash when tapping history VH without result view

Bug: 33383348
Test: manual - tap history with "No History" showing, doesn't crash
Change-Id: I79c511e5f4e35c38febb7f9b4bf417b13f83d310
parent 1fcfc312
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -248,7 +248,8 @@ public class HistoryFragment extends Fragment {
            final View view = mRecyclerView.getChildAt(i);
            final HistoryAdapter.ViewHolder viewHolder =
                    (HistoryAdapter.ViewHolder) mRecyclerView.getChildViewHolder(view);
            if (viewHolder != null && viewHolder.getResult().stopActionModeOrContextMenu()) {
            if (viewHolder != null && viewHolder.getResult() != null
                    && viewHolder.getResult().stopActionModeOrContextMenu()) {
                return true;
            }
        }