修复LiveGiftDialogFragment一处空指针异常问题

This commit is contained in:
zlzw 2023-01-29 10:55:54 +08:00
parent e108494bd5
commit c1aeaa0e1b

View File

@ -208,7 +208,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
@Override @Override
public void onPageSelected(int position) { public void onPageSelected(int position) {
if (mRadioGroup != null) { if (mRadioGroup != null && mRadioGroup.getChildAt(position)!=null) {
((RadioButton) mRadioGroup.getChildAt(position)).setChecked(true); ((RadioButton) mRadioGroup.getChildAt(position)).setChecked(true);
} }
} }