lukepighetti / mastodon_dart

Unofficial 🐘 client written in 🎯
https://pub.dev/packages/mastodon_dart
MIT License
28 stars 8 forks source link

publishStatus throws a NoSuchMethodError for the getter 'length' #9

Closed GroovinChip closed 5 years ago

GroovinChip commented 5 years ago

Sample code:

Provider.of<Mastodon>(context).publishStatus(
  status: postContentController.text,
  visibility: Visibility.public,
).catchError((error) => print(error));

produces the below error:

I/flutter (10922): NoSuchMethodError: The getter 'length' was called on null.
I/flutter (10922): Receiver: null
I/flutter (10922): Tried calling: length
lukepighetti commented 5 years ago

Resolved in https://github.com/lukepighetti/mastodon-dart/commit/539187ce7099502daad09f6a08ebd74db612c970

Thanks!