Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra_data Parsing #163

Closed
obrunsmann opened this issue Oct 29, 2021 · 0 comments · Fixed by #167
Closed

extra_data Parsing #163

obrunsmann opened this issue Oct 29, 2021 · 0 comments · Fixed by #167
Labels
bug Something isn't working

Comments

@obrunsmann
Copy link
Contributor

I got an error parsing extra_data on an activity:

Bildschirmfoto 2021-10-29 um 20 49 12

flutter: type 'Null' is not a subtype of type 'Object' in type cast
flutter: #0      _$EnrichedActivityFromJson.<anonymous closure>
#1      MapMixin.map (dart:collection/maps.dart:170:28)
#2      _$EnrichedActivityFromJson
package:stream_feed/…/models/enriched_activity.g.dart:27
#3      new EnrichedActivity.fromJson
package:stream_feed/…/models/enriched_activity.dart:66
#4      FlatFeed.getEnrichedActivities.<anonymous closure>
package:stream_feed/…/client/flat_feed.dart:133
#5      MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#6      ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#7      new _List._ofEfficientLengthIterable (dart:core-patch/array.dart:93:27)
#8      new _List.of (dart:core-patch/array.dart:55:20)
#9      new List.of (dart:core-patch/array_patch.dart:52:20)
#10     ListIterable.toList (dart:_internal/iterable.dart:213:44)
#11     FlatFeed.getEnrichedActivities
package:stream_feed/…/client/flat_feed.dart:134

Maybe it would be nice to also allow null values while it's a weak map either?

@obrunsmann obrunsmann added the bug Something isn't working label Oct 29, 2021
This was referenced Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant