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