diff --git a/opensrp-app/src/main/java/org/smartregister/login/interactor/BaseLoginInteractor.java b/opensrp-app/src/main/java/org/smartregister/login/interactor/BaseLoginInteractor.java index f6e354035..ec3a5374f 100644 --- a/opensrp-app/src/main/java/org/smartregister/login/interactor/BaseLoginInteractor.java +++ b/opensrp-app/src/main/java/org/smartregister/login/interactor/BaseLoginInteractor.java @@ -109,7 +109,10 @@ private void localLogin(WeakReference view, String userN private void navigateToHomePage(String userName) { getUserService().localLoginWith(userName); - getLoginView().goToHome(false); + + if (mLoginPresenter != null) { + getLoginView().goToHome(false); + } CoreLibrary.getInstance().initP2pLibrary(userName);