Skip to content

Commit

Permalink
Add check for null login presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
ndegwamartin committed Sep 23, 2020
1 parent e8d3918 commit 55b8d06
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ private void localLogin(WeakReference<BaseLoginContract.View> view, String userN
private void navigateToHomePage(String userName) {

getUserService().localLoginWith(userName);
getLoginView().goToHome(false);

if (mLoginPresenter != null) {
getLoginView().goToHome(false);
}

CoreLibrary.getInstance().initP2pLibrary(userName);

Expand Down

0 comments on commit 55b8d06

Please sign in to comment.