changeset 9159:31be05742be9

[gaim-migrate @ 9943] datallah tells me this fixes a crash for getting the list for IRC. I don't see how, but I don't object to this sanity check either. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Tue, 01 Jun 2004 19:06:00 +0000
parents c30d81b4dd22
children dabfa4184db8
files src/gtkroomlist.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkroomlist.c	Tue Jun 01 06:42:20 2004 +0000
+++ b/src/gtkroomlist.c	Tue Jun 01 19:06:00 2004 +0000
@@ -116,6 +116,8 @@
 	}
 
 	dialog->roomlist = gaim_roomlist_get_list(gc);
+	if (!dialog->roomlist)
+		return;
 	gaim_roomlist_ref(dialog->roomlist);
 	rl = dialog->roomlist->ui_data;
 	rl->dialog = dialog;