# HG changeset patch # User Paul Aurich # Date 1243190372 0 # Node ID fe1603ecf5798edd25e42d3a56d4a006518bc7eb # Parent c2cd559e034f0078a5e8addc15b1f1ed05b33ab3 Avoid an assertion when nothing in dropdown is selected. This happens with an account filter on XMPP accounts and no XMPP accounts are connected, so there's nothing in the dropdown. diff -r c2cd559e034f -r fe1603ecf579 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Sat May 23 22:46:28 2009 +0000 +++ b/pidgin/gtkutils.c Sun May 24 18:39:32 2009 +0000 @@ -525,7 +525,7 @@ GtkWidget *item = gtk_menu_get_active(GTK_MENU(menu)); if (p_item) (*p_item) = item; - return g_object_get_data(G_OBJECT(item), "aop_per_item_data"); + return item ? g_object_get_data(G_OBJECT(item), "aop_per_item_data") : NULL; } static void