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

This commit is contained in:
zlzw 2023-01-29 09:49:04 +08:00
parent 911869ed9f
commit 944d703e36

View File

@ -6,6 +6,7 @@ import android.text.TextUtils;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
import com.yunbao.common.utils.StringUtil;
/** /**
* Created by cxf on 2017/8/14. * Created by cxf on 2017/8/14.
@ -116,6 +117,9 @@ public class UserBean implements Parcelable {
} }
public String getIs_bind() { public String getIs_bind() {
if(StringUtil.isEmpty(is_bind)){
is_bind="0";
}
return is_bind; return is_bind;
} }