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);