about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-02 01:45:02 +0000
committerJames Booth <boothj5@gmail.com>2016-01-02 01:45:02 +0000
commitf9d89d564fab248e7a0f19229267414d6d426b93 (patch)
treeb0d5b124af0a43ca8d269f4f0d5ace9d56fb747d /src
parent254c83d2d16037b22c060ed57d3c31de82f4750a (diff)
downloadprofani-tty-f9d89d564fab248e7a0f19229267414d6d426b93.tar.gz
Check for mucwin before showing room in roster
Diffstat (limited to 'src')
-rw-r--r--src/ui/rosterwin.c4
1 files changed, 3 insertions, 1 deletions
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);
         }
     }