diff --git a/lib/src/utils/profile.dart b/lib/src/utils/profile.dart index 85651ea..f01c347 100644 --- a/lib/src/utils/profile.dart +++ b/lib/src/utils/profile.dart @@ -10,7 +10,7 @@ class Profile { final Map content; Profile.fromJson(Map json) - : avatarUrl = Uri.parse(json['avatar_url']), + : avatarUrl = json['avatar_url'] != null ? Uri.parse(json['avatar_url']) : null, displayname = json['displayname'], content = json;