فهرست منبع

增加判空逻辑

Pq 2 سال پیش
والد
کامیت
be279318fa
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      teacher/src/main/java/com/cooleshow/teacher/presenter/live/LiveRoomPresenter.java

+ 3 - 0
teacher/src/main/java/com/cooleshow/teacher/presenter/live/LiveRoomPresenter.java

@@ -459,6 +459,9 @@ public class LiveRoomPresenter extends BasePresenter<LiveRoomContract.LiveRoomVi
      */
     public void startPublish() {
         RCRTCRoom rcrtcRoom = LiveEventHelper.getInstance().getRtcRoom();
+        if (rcrtcRoom == null) {
+            return;
+        }
         RCRTCEngine.getInstance().getDefaultVideoStream().startCamera(null);
         rcrtcRoom.getLocalUser().publishDefaultLiveStreams(new IRCRTCResultDataCallback<RCRTCLiveInfo>() {
             @Override