diff --git a/app/src/main/java/io/github/muntashirakon/AppManager/logcat/AbsLogViewerFragment.java b/app/src/main/java/io/github/muntashirakon/AppManager/logcat/AbsLogViewerFragment.java index 4ca22c53176..f941516277f 100644 --- a/app/src/main/java/io/github/muntashirakon/AppManager/logcat/AbsLogViewerFragment.java +++ b/app/src/main/java/io/github/muntashirakon/AppManager/logcat/AbsLogViewerFragment.java @@ -143,7 +143,9 @@ public void onAttach(@NonNull Context context) { @CallSuper @Override public void onDestroy() { - mRecyclerView.removeOnScrollListener(mRecyclerViewScrollListener); + if (mRecyclerView != null) { + mRecyclerView.removeOnScrollListener(mRecyclerViewScrollListener); + } super.onDestroy(); }