From 07ae094bedb470b118f250a609e85bcd9b9ce3fb Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 28 Oct 2022 13:12:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfirebase=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E7=9A=84=E7=A9=BA=E6=8C=87=E9=92=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/views/PortraitLiveManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }