diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveFansFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveFansFragment.java index 513c094ce..413d80a7e 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveFansFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveFansFragment.java @@ -124,7 +124,7 @@ public class LiveFansFragment extends AbsDialogFragment { ToastUtil.show("退出成功"); dismiss(); } else if (TextUtils.equals(event.getMethod(), "sendFansCard")) { - if (LiveRoomViewHolder.mBtnFollow.getVisibility() == View.VISIBLE) { + if (LiveRoomViewHolder.mBtnFollow != null && LiveRoomViewHolder.mBtnFollow.getVisibility() == View.VISIBLE) { LiveRoomViewHolder.follow(); } //点击 开通粉丝勋章,打开礼物列表送礼物