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 + } } } }