From 4688c887c4a6fa08394e666826481c74b5a17f02 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 8 Mar 2021 17:03:29 -0700 Subject: [PATCH] Fix GroupAvatar crash When we don't have an avatar we shouldn't explode. --- src/components/views/avatars/GroupAvatar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/avatars/GroupAvatar.tsx b/src/components/views/avatars/GroupAvatar.tsx index 6d8ef9e8f6..3734ba9504 100644 --- a/src/components/views/avatars/GroupAvatar.tsx +++ b/src/components/views/avatars/GroupAvatar.tsx @@ -39,6 +39,7 @@ export default class GroupAvatar extends React.Component { }; getGroupAvatarUrl() { + if (!this.props.groupAvatarUrl) return null; return mediaFromMxc(this.props.groupAvatarUrl).getThumbnailOfSourceHttp( this.props.width, this.props.height,