修复一处空指针闪退问题

This commit is contained in:
zlzw 2022-10-20 15:35:49 +08:00
parent 5ec6a14ba1
commit 231ffcac84

View File

@ -405,7 +405,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
} }
private void showGiftList(List<LiveGiftBean> list) { private void showGiftList(List<LiveGiftBean> list) {
if (IMLoginManager.get(mContext).isNewUserGif() && type_name.equals("熱門") || type_name.equals("Hot")) { if (bean1!=null&&IMLoginManager.get(mContext).isNewUserGif() && (type_name.equals("熱門") || type_name.equals("Hot"))) {
list.add(0, bean1); list.add(0, bean1);
if (mWishGiftId == null) { if (mWishGiftId == null) {
mWishGiftId = "" + bean1.getId(); mWishGiftId = "" + bean1.getId();