changeset 4598:a064e437d5eb

[gaim-migrate @ 4883] This should fix the window crash bug that Rob reported to me. I hope. I blame gtk2. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 21 Feb 2003 23:02:36 +0000
parents 1969709eee1e
children 221fb7143cd4
files src/gtkconv.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Fri Feb 21 05:53:40 2003 +0000
+++ b/src/gtkconv.c	Fri Feb 21 23:02:36 2003 +0000
@@ -1709,7 +1709,11 @@
 
 	win = (struct gaim_window *)user_data;
 
-	conv    = gaim_window_get_conversation_at(win, page_num);
+	conv = gaim_window_get_conversation_at(win, page_num);
+
+	if (conv == NULL)
+		return;
+
 	gc      = gaim_conversation_get_gc(conv);
 	gtkwin  = GAIM_GTK_WINDOW(win);
 	gtkconv = GAIM_GTK_CONVERSATION(conv);