Skip to content

Commit

Permalink
fix(crashlytics, android): improve reason field handling in recordErr…
Browse files Browse the repository at this point in the history
…or (#10256)
  • Loading branch information
Lyokone committed Jan 12, 2023
1 parent 794622c commit 48af811
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -148,7 +148,7 @@ private Task<Void> recordError(final Map<String, Object> arguments) {
}

Exception exception;
if (reason != null) {
if (reason != null && !reason.equals("null")) {
// Set a "reason" (to match iOS) to show where the exception was thrown.
crashlytics.setCustomKey(Constants.FLUTTER_ERROR_REASON, "thrown " + reason);
exception =
Expand Down

0 comments on commit 48af811

Please sign in to comment.