rollbar / rollbar-flutter

Rollbar for Dart and Flutter
https://docs.rollbar.com/docs/flutter
MIT License
21 stars 27 forks source link

Fixes an Android native unit test and Android example issue #96

Closed matux closed 1 year ago

matux commented 1 year ago

Description of the change

An Android unit test started to fail with Flutter SDK 3.7.

The function encodeErrorEnvelopeWithStacktrace on our mocked MethodCodec is being called without a stack trace, this call comes from the Flutter system. I've tracked this down to:

Where "errorStacktrace - Platform stacktrace for the error. possibly null."

So it seems it is correct that this may be null. I've added a check.

The library and example works fine regardless of the Flutter SDK version.

Type of change

Related issues

Checklists

Development

Code review