Closed matux closed 1 year ago
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:
encodeErrorEnvelopeWithStacktrace
MethodCodec
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.
Description of the change
An Android unit test started to fail with Flutter SDK 3.7.
The function
encodeErrorEnvelopeWithStacktrace
on our mockedMethodCodec
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