diff --git a/app/src/main/java/com/nextcloud/talk/errorhandling/ExceptionHandler.kt b/app/src/main/java/com/nextcloud/talk/errorhandling/ExceptionHandler.kt index 49a575cd80a..dc2c92c857f 100644 --- a/app/src/main/java/com/nextcloud/talk/errorhandling/ExceptionHandler.kt +++ b/app/src/main/java/com/nextcloud/talk/errorhandling/ExceptionHandler.kt @@ -73,8 +73,11 @@ class ExceptionHandler( } } } catch (fatal: Exception) { + // Forward the original crash, not this secondary failure, so crash + // reporting reflects why the app actually died rather than why we + // failed to show the crash screen for it. Log.e(TAG, "Fatal error in ExceptionHandler itself", fatal) - defaultExceptionHandler.uncaughtException(thread, fatal) + defaultExceptionHandler.uncaughtException(thread, exception) return } // Forward to the default handler so AMS records the crash as REASON_CRASH and