需求:修改空指针问题

This commit is contained in:
18401019693 2022-12-15 16:07:43 +08:00
parent 325e57d1d5
commit 51186169ca

View File

@ -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);