修复一处可能的空指针错误

This commit is contained in:
Yutousama 2022-12-19 16:05:35 +08:00
parent cce8e43c24
commit 6198489dd4

View File

@ -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();
}
//点击 开通粉丝勋章,打开礼物列表送礼物