bugsnag / bugsnag-flutter

BugSnag crash reporting for Flutter apps
https://docs.bugsnag.com/platforms/flutter/
MIT License
11 stars 11 forks source link

Prevent crash with empty stack trace #204

Closed 0HyperCube closed 1 year ago

0HyperCube commented 1 year ago

Goal

Closes #186

Design

If the error has a stack trace but the stacktrace is empty, we should use the fallback stack trace instead of an empty list.

If the stacktrace is empty, we shouldn't crash by calling .first.