diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index b7cf9396..8bbadbcf 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -429,7 +429,9 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline) GList *curr_room = rooms; while (curr_room) { ProfMucWin *mucwin = wins_get_muc(curr_room->data); - _rosterwin_room(layout, mucwin); + if (mucwin) { + _rosterwin_room(layout, mucwin); + } curr_room = g_list_next(curr_room); } }