修复直播间@列表 userlistModels为空导致的问题
This commit is contained in:
parent
23be58c4e8
commit
3bd4301cda
@ -79,6 +79,7 @@ public class OlineListActivity extends AbsActivity {
|
|||||||
List<OlineUserlistModel> audiencelistModels = new ArrayList<>();
|
List<OlineUserlistModel> audiencelistModels = new ArrayList<>();
|
||||||
List<Map<Integer, List<OlineUserlistModel>>> mapList = new ArrayList<>();
|
List<Map<Integer, List<OlineUserlistModel>>> mapList = new ArrayList<>();
|
||||||
//讲贵族前置顺序
|
//讲贵族前置顺序
|
||||||
|
if (userlistModels != null) {
|
||||||
for (OlineUserlistModel model : userlistModels) {
|
for (OlineUserlistModel model : userlistModels) {
|
||||||
int nobleId = Integer.parseInt(model.getNobleId());
|
int nobleId = Integer.parseInt(model.getNobleId());
|
||||||
if (nobleId > 0) {
|
if (nobleId > 0) {
|
||||||
@ -87,6 +88,7 @@ public class OlineListActivity extends AbsActivity {
|
|||||||
audiencelistModels.add(model);
|
audiencelistModels.add(model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Map<Integer, List<OlineUserlistModel>> noblerMap = new HashMap<>();
|
Map<Integer, List<OlineUserlistModel>> noblerMap = new HashMap<>();
|
||||||
noblerMap.put(0, noblelistModels);
|
noblerMap.put(0, noblelistModels);
|
||||||
Map<Integer, List<OlineUserlistModel>> audienceMap = new HashMap<>();
|
Map<Integer, List<OlineUserlistModel>> audienceMap = new HashMap<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user