mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-11-20 12:56:31 +00:00
nullchecker fix for profileModel
This commit is contained in:
parent
50432468e5
commit
7f5b91e343
1 changed files with 6 additions and 4 deletions
|
|
@ -604,10 +604,12 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||
usernameTemp = usernameTemp.substring(1);
|
||||
}
|
||||
if (TextUtils.isEmpty(usernameTemp)) {
|
||||
profileModel = appStateViewModel.getCurrentUser();
|
||||
username = profileModel.getUsername();
|
||||
setUsernameDelayed();
|
||||
setProfileDetails();
|
||||
profileModel = appStateViewModel.getCurrentUser();
|
||||
if (profileModel != null) {
|
||||
username = profileModel.getUsername();
|
||||
setUsernameDelayed();
|
||||
setProfileDetails();
|
||||
}
|
||||
}
|
||||
else if (isLoggedIn) {
|
||||
userService.getUsernameInfo(usernameTemp, new ServiceCallback<User>() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue