From e3ced175dea4962240e8ccf6fe1fc74aa91eebe5 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 28 Apr 2020 11:36:20 +0000 Subject: [PATCH] Fix profile uri parse --- lib/src/utils/profile.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;