From cbe09c1f0b3a82681c0427267ae5ebc1c20763e7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Dec 2019 16:41:46 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/CrashHandler.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/CrashHandler.kt b/app/src/main/java/io/legado/app/help/CrashHandler.kt index a8fe0d05f..9a5c7131a 100644 --- a/app/src/main/java/io/legado/app/help/CrashHandler.kt +++ b/app/src/main/java/io/legado/app/help/CrashHandler.kt @@ -103,7 +103,9 @@ class CrashHandler : Thread.UncaughtExceptionHandler { kotlin.runCatching { for (field in fields) { field.isAccessible = true - paramsMap[field.name] = field.get(null).toString() + field.get(null)?.toString()?.let { + paramsMap[field.name] = it + } } } }