diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index fe9438e7b..175230f32 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -1009,7 +1009,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe @Override public void onHourRank(LiveChatBean bean, JSONObject ranks) { - if (mLiveRoomViewHolder != null && !TextUtils.isEmpty(liveID)) { + if (mLiveRoomViewHolder != null && !TextUtils.isEmpty(liveID) && ranks != null) { mLiveRoomViewHolder.setHourRankData(ranks.getInteger(liveID)); } } @@ -1626,8 +1626,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe /** * 幸运天使 */ - public void luckyAngel(MsgModel model){ - if(mLiveRoomViewHolder != null){ + public void luckyAngel(MsgModel model) { + if (mLiveRoomViewHolder != null) { mLiveRoomViewHolder.luckyAngel(model); } }