修复登录时getRandJoinAnchor接口返回info为空导致的空指针闪退问题
This commit is contained in:
parent
3af7ca5d94
commit
dd1570c10e
@ -102,7 +102,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 != null && 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");
|
||||||
|
Loading…
Reference in New Issue
Block a user