修复UserBean的is_bind为空导致【编辑资料】时闪退问题

This commit is contained in:
zlzw 2023-01-29 09:52:01 +08:00
parent 944d703e36
commit 80fe5271f6

View File

@ -466,7 +466,7 @@ public class EditProfileActivity extends AbsActivity {
MainHttpUtil.getBaseInfo(new CommonCallback<UserBean>() { MainHttpUtil.getBaseInfo(new CommonCallback<UserBean>() {
@Override @Override
public void callback(UserBean u) { public void callback(UserBean u) {
if ("1".equals(u.getIs_bind())) { if (u != null &&"1".equals(u.getIs_bind())) {
tv_bind_phone.setText(""); tv_bind_phone.setText("");
isBind = "1"; isBind = "1";
mobile = u.getMobile(); mobile = u.getMobile();