changeset 32091:9ed5d83f52fe

small assertion code.
author tdrhq@soc.pidgin.im
date Mon, 10 Aug 2009 10:30:31 +0000
parents fd2f3d2d8140
children c5d6befd0765
files pidgin/plugins/adiumthemes/webkit.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/adiumthemes/webkit.c	Mon Aug 10 10:26:02 2009 +0000
+++ b/pidgin/plugins/adiumthemes/webkit.c	Mon Aug 10 10:30:31 2009 +0000
@@ -468,6 +468,7 @@
 	footer = replace_header_tokens(style->footer_html, strlen(style->footer_html), conv);
 	template = replace_template_tokens(style, style->template_html, strlen(style->template_html) + strlen(style->header_html), header, footer);
 
+	g_assert(template);
 	webkit_web_view_load_string(WEBKIT_WEB_VIEW(webkit), template, "text/html", "UTF-8", baseuri);
 
 	g_object_set_data (G_OBJECT(webkit), MESSAGE_STYLE_KEY, style);