diff --git a/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java b/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java index 144b9b490..bb00765df 100644 --- a/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java @@ -466,7 +466,7 @@ public class EditProfileActivity extends AbsActivity { MainHttpUtil.getBaseInfo(new CommonCallback() { @Override public void callback(UserBean u) { - if ("1".equals(u.getIs_bind())) { + if (u != null &&"1".equals(u.getIs_bind())) { tv_bind_phone.setText(""); isBind = "1"; mobile = u.getMobile();