From 847e52a6afeb14c102a7ed22d028aa9b40f65acd Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 18 Jun 2021 16:23:09 +0200 Subject: [PATCH] Fix null warning for space avatars --- resources/qml/TimelineView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 703f2fac..7bbb803b 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -138,7 +138,7 @@ Item { spacing: Nheko.paddingLarge Avatar { - url: room.roomAvatarUrl.replace("mxc://", "image://MxcImage/") + url: room ? room.roomAvatarUrl.replace("mxc://", "image://MxcImage/") : "" displayName: room ? room.roomName : "" height: 130 width: 130