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:
parent
50432468e5
commit
7f5b91e343
@ -604,10 +604,12 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
usernameTemp = usernameTemp.substring(1);
|
usernameTemp = usernameTemp.substring(1);
|
||||||
}
|
}
|
||||||
if (TextUtils.isEmpty(usernameTemp)) {
|
if (TextUtils.isEmpty(usernameTemp)) {
|
||||||
profileModel = appStateViewModel.getCurrentUser();
|
profileModel = appStateViewModel.getCurrentUser();
|
||||||
username = profileModel.getUsername();
|
if (profileModel != null) {
|
||||||
setUsernameDelayed();
|
username = profileModel.getUsername();
|
||||||
setProfileDetails();
|
setUsernameDelayed();
|
||||||
|
setProfileDetails();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (isLoggedIn) {
|
else if (isLoggedIn) {
|
||||||
userService.getUsernameInfo(usernameTemp, new ServiceCallback<User>() {
|
userService.getUsernameInfo(usernameTemp, new ServiceCallback<User>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user