diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java index a565bc090..70a5a88c0 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java @@ -272,6 +272,9 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie } private List processUserData(JSONObject json){ List data = JSON.parseArray(json.getString("userlist"), LiveUserGiftBean.class); + if(data==null){ + return new ArrayList<>(); + } Log.i("tag222", "ssss"); if (data.size() > 0 && pg == 1) { nums = 0; @@ -297,6 +300,9 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie /** * 由于在线观众和粉丝列表实体结构与榜单结构不一致,做个兼容操作 */ + if(rank==null){ + return data; + } for (Object o : rank) { JSONObject item= (JSONObject) o; LiveUserRankBean bean=JSON.parseObject(item.getString("userinfo"),LiveUserRankBean.class);