Closed dickermoshe closed 4 months ago
I encountered a bug that File is not checked for null before assigning a reading it. Fixes: https://github.com/trevorwang/retrofit.dart/issues/662
This will check for null:
final _data = body == null ? null : Stream.fromIterable(body.readAsBytesSync().map((i) => [i]));
It turns out that this bug is on all nullable bodies. This will require a bigger fix
I encountered a bug that File is not checked for null before assigning a reading it. Fixes: https://github.com/trevorwang/retrofit.dart/issues/662
This will check for null: