changeset 17148: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 e22968d33131
children 7f00fb7f18b5
files pidgin/gtkimhtml.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);