From 89a54276b341512ca3f63511ea1168549a32ddf0 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 31 Oct 2022 10:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=8D=E9=A6=88=E6=94=B6?= =?UTF-8?q?=E9=9B=86=E7=B1=BB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/bean/CrashSaveBean.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/bean/CrashSaveBean.java b/common/src/main/java/com/yunbao/common/bean/CrashSaveBean.java index d29298124..53b741f62 100644 --- a/common/src/main/java/com/yunbao/common/bean/CrashSaveBean.java +++ b/common/src/main/java/com/yunbao/common/bean/CrashSaveBean.java @@ -60,10 +60,14 @@ public class CrashSaveBean { } public String getActivitySize() { - StringBuilder builder=new StringBuilder(); + StringBuilder builder = new StringBuilder(); for (WeakReference activity : activities) { - if(activity.get()!=null){ - builder.append(activity.get()).append(","); + try { + if (activity.get() != null) { + builder.append(activity.get().getClass().getSimpleName()).append(","); + } + } catch (Exception ignored) { + } } return builder.toString();