Closed ar-g closed 7 years ago
You're running asynchronous code in your presenter. The user removed your fragment somehow (or closed the app) and the view was detached (onDetachView()
). Then your async code returns and calls getViewOrThrow()
. The view is detached and null
.
As mentioned in the error message you should use sendToView(v -> v.callYourMethod())
instead of getViewOrThrow().callYourMethod()
We have in our crashlytics some NPE crashes caused by onClickListeners in ViewHolders and Fragments. They ain't many but still occurs. Do you have any idea why?