diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java index be55d20c2..6de4ec229 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java @@ -82,12 +82,16 @@ public class LiveNewRoomTypeDialogFragment extends AbsDialogFragment implements submit.setOnClickListener(view -> { if (isSelectPublic) { LiveRoomTypeBean bean = new LiveRoomTypeBean(0, WordUtil.getString(R.string.live_room_public)); - mCallback.callback(bean); + if(mCallback!=null) { + mCallback.callback(bean); + } } else { for (LiveRoomTypeBean bean : mList) { if (bean.getId() == Constants.LIVE_TYPE_PWD) { bean.setChecked(true); - mCallback.callback(bean); + if(mCallback!=null) { + mCallback.callback(bean); + } break; } }