修复一处登录时空指针错误

This commit is contained in:
zlzw 2022-11-16 17:08:10 +08:00
parent 38f6f2f451
commit e8f9884365

View File

@ -118,7 +118,7 @@ public class OneLoginDialog extends AbsDialogFragment {
@Override @Override
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
dismiss(); dismiss();
if (info.length > 0 && !StringUtil.isEmpty(info[0])) { if (info.length != 0 && !StringUtil.isEmpty(info[0])) {
JSONObject obj = JSON.parseObject(info[0]); JSONObject obj = JSON.parseObject(info[0]);
if (obj.containsKey("home_zdy_img_us")) { if (obj.containsKey("home_zdy_img_us")) {
home_zdy_img_us = obj.getString("home_zdy_img_us"); home_zdy_img_us = obj.getString("home_zdy_img_us");