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 f74108a76..1876e0809 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -505,7 +505,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe linkMicPkStartRunnable = new Runnable() { @Override public void run() { - mLiveRoomViewHolder.setOtherInfo(pkInfo.getString("pkuid"), pkInfo.getString("pkuimg"), pkInfo.getString("pkuname")); + if (pkInfo!=null&&pkInfo.containsKey("pkuid")&&pkInfo.containsKey("pkuimg")&&pkInfo.containsKey("pkuname")){ + mLiveRoomViewHolder.setOtherInfo(pkInfo.getString("pkuid"), pkInfo.getString("pkuimg"), pkInfo.getString("pkuname")); + } + } }; linkMicPkStartHandler.postDelayed(linkMicPkStartRunnable, 4000);