1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 14:47:29 +00:00

nullchecker fix for profileModel

This commit is contained in:
junhuicoding 2021-04-01 00:24:15 +08:00
parent 50432468e5
commit 7f5b91e343

View File

@ -605,10 +605,12 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
}
if (TextUtils.isEmpty(usernameTemp)) {
profileModel = appStateViewModel.getCurrentUser();
if (profileModel != null) {
username = profileModel.getUsername();
setUsernameDelayed();
setProfileDetails();
}
}
else if (isLoggedIn) {
userService.getUsernameInfo(usernameTemp, new ServiceCallback<User>() {
@Override