diff --git a/src/resizer/room.js b/src/resizer/room.js index 70f8be219a..def12d49eb 100644 --- a/src/resizer/room.js +++ b/src/resizer/room.js @@ -38,6 +38,9 @@ class RoomSizer extends Sizer { class RoomDistributor extends FixedDistributor { resize(itemSize) { const scrollItem = this.item.querySelector(".mx_RoomSubList_scroll"); + if (!scrollItem) { + return; //FIXME: happens when starting the page on a community url, taking the safe way out for now + } const fixedHeight = this.item.offsetHeight - scrollItem.offsetHeight; if (itemSize > (fixedHeight + scrollItem.scrollHeight)) { super.resize("resized-all");