From cce8e43c248988edfb78c6066d082aefe2a2e17b Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 19 Dec 2022 16:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E7=9A=84=E7=A9=BA=E6=8C=87=E9=92=88=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveAudienceViewHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java index 5075b4067..c6ceacd3e 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java @@ -118,7 +118,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder { svga_new_user_gif.stopAnimation(); svga_new_user_gif.clear(); } else if ("name_true".equals(str)) { - if (LiveRoomViewHolder.mName.getText().length() <= 4) { + if (LiveRoomViewHolder.mName != null && LiveRoomViewHolder.mName.getText().length() <= 4) { RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(DpUtil.dp2px(116), DpUtil.dp2px(40)); layoutParams.setMargins(DpUtil.dp2px(80), DpUtil.dp2px(80), 0, 0); svga_new_user_follow.setLayoutParams(layoutParams);