Skip to content

Commit

Permalink
fix(crashlytics): Replace null or empty stack traces with the current…
Browse files Browse the repository at this point in the history
… stack trace (#9490)
  • Loading branch information
mrober committed Sep 8, 2022
1 parent ce238f7 commit c54a95f
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -114,7 +114,10 @@ class FirebaseCrashlytics extends FirebasePluginPlatform {
print('----------------------------------------------------');
}

final StackTrace stackTrace = stack ?? StackTrace.current;
// Replace null or empty stack traces with the current stack trace.
final StackTrace stackTrace = (stack == null || stack.toString().isEmpty)
? StackTrace.current
: stack;

// Report error.
final List<Map<String, String>> stackTraceElements =
Expand Down

0 comments on commit c54a95f

Please sign in to comment.