Skip to content

Commit

Permalink
修复Firebase NullPointer
Browse files Browse the repository at this point in the history
Change-Id: I8f43bcfa2b953bf9bd331c1d83378dd682f4c807
  • Loading branch information
archurcode committed Apr 9, 2021
1 parent fcdd6a7 commit 6e9a5a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LoginPresenter : ParentPresenter<LoginModel, LoginView> {
}

fun getCountryCode(): String {
return model!!.getCountryCode()
return model?.getCountryCode().toString()
}

fun setCountry(country: String) {
Expand Down

0 comments on commit 6e9a5a2

Please sign in to comment.