fix:修复一处空指针异常

This commit is contained in:
zlzw 2022-09-06 16:58:51 +08:00
parent ec8e258e45
commit 50e5dbfeca

View File

@ -1371,6 +1371,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
* 退出直播间 * 退出直播间
*/ */
public void exitLiveRoom() { public void exitLiveRoom() {
if(mLiveBean==null) {
return;
}
RongChatRoomClient.getInstance().quitChatRoom("g" + mLiveBean.getUid(), new IRongCoreCallback.OperationCallback() { RongChatRoomClient.getInstance().quitChatRoom("g" + mLiveBean.getUid(), new IRongCoreCallback.OperationCallback() {
@Override @Override
public void onSuccess() { public void onSuccess() {