janishar / android-mvp-architecture

This repository contains a detailed sample app that implements MVP architecture using Dagger2, GreenDao, RxJava2, FastAndroidNetworking and PlaceholderView

Home Page:https://janisharali.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attempt to invoke interface method 'void SplashMvpView.openMainActivity()' on a null object reference

chnouman opened this issue · comments

This error occur most of the times when i close the activity while the app is performing any task like i'm using firestore in my project when i make a request to firestore and close the activity it gives me error that getMVPView() is null.

Same is happening in my splash screen when i open and close the app for 2 to 3 times it gives me error on getMVPView() in my presenter class.
Kindly help me to get rid of this issue.