diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java index 3c3c72488..f74407002 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java @@ -388,6 +388,7 @@ public abstract class AbsStatusesFragment extends AbsContentListRecyclerVi if (mPopupMenu != null) { mPopupMenu.dismiss(); } + if (getActivity() == null) return; final AbsStatusesAdapter adapter = getAdapter(); final PopupMenu popupMenu = new PopupMenu(adapter.getContext(), menuView, Gravity.NO_GRAVITY, R.attr.actionOverflowMenuStyle, 0);