修复CrashSaveBean的activities数组可能为空的问题

This commit is contained in:
zlzw 2022-12-14 13:44:22 +08:00
parent b641a65117
commit 4a8c29365c

View File

@ -3,6 +3,7 @@ package com.yunbao.common.bean;
import android.app.Activity; import android.app.Activity;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
@ -14,7 +15,7 @@ public class CrashSaveBean {
private long enterRoom;//进入房间次数 private long enterRoom;//进入房间次数
private long slidingRoom;//滑动直播间次数 private long slidingRoom;//滑动直播间次数
private long playSvga;//加载播放svga次数 private long playSvga;//加载播放svga次数
private List<WeakReference<Activity>> activities;//Activity数量 private List<WeakReference<Activity>> activities = new ArrayList<>();//Activity数量
private CrashSaveBean() { private CrashSaveBean() {