From f9d89d564fab248e7a0f19229267414d6d426b93 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 2 Jan 2016 01:45:02 +0000 Subject: Check for mucwin before showing room in roster --- src/ui/rosterwin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit 1.4.1-2-gfad0