# HG changeset patch # User Marcus Lundblad # Date 1225316139 0 # Node ID 12c01afbb0eaf8b3b07b5b8a7a32733726899887 # Parent 9e07b1c140750e95ec13d1ac56fe6e02e6812b28 NULL-check for conversation when updating attention button diff -r 9e07b1c14075 -r 12c01afbb0ea pidgin/gtkimhtmltoolbar.c --- a/pidgin/gtkimhtmltoolbar.c Wed Oct 29 21:33:36 2008 +0000 +++ b/pidgin/gtkimhtmltoolbar.c Wed Oct 29 21:35:39 2008 +0000 @@ -1571,7 +1571,7 @@ /* gray out attention button on protocols that don't support it for the time being it is always disabled for chats */ gtk_widget_set_sensitive(toolbar->attention, - conv && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM && - PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL); + conv && prpl && purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM && + PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL); }