diff src/gtkroomlist.c @ 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 1f2bbb359adb
children 03be9d653123
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;