Skip to content

Commit f63369d

Browse files
committed
Fixes #290
1 parent aebe1bb commit f63369d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/adapter/remote_adapter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mixin _RemoteAdapter<T extends DataModelMixin<T>> on _SerializationAdapter<T> {
9494
onError: (e, label) async {
9595
onError ??= (e, label, _) async {
9696
final result = await this.onError<List<T>>(e, label);
97-
return result as List<T>;
97+
return result ?? [];
9898
};
9999
return onError!.call(e, label, this as Adapter<T>);
100100
},

0 commit comments

Comments
 (0)