diff pidgin/gtkimhtml.c @ 17125:2e2f6cf3f85e

Do not crash when trying to insert a smiley for a protocol not mentioned in the theme, and there's no default smiley set.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 18 May 2007 12:27:31 +0000
parents 9f964a4834d9
children 05fa005bdc59
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Fri May 18 11:42:49 2007 +0000
+++ b/pidgin/gtkimhtml.c	Fri May 18 12:27:31 2007 +0000
@@ -4441,7 +4441,7 @@
 		}
 	}
 
-	if (imhtml_smiley->flags & GTK_IMHTML_SMILEY_CUSTOM) {
+	if (imhtml_smiley && imhtml_smiley->flags & GTK_IMHTML_SMILEY_CUSTOM) {
 		ebox = gtk_event_box_new();
 		gtk_event_box_set_visible_window(GTK_EVENT_BOX(ebox), FALSE);
 		gtk_widget_show(ebox);