# HG changeset patch # User Sadrul Habib Chowdhury # Date 1188996995 0 # Node ID e21002d106ab69a06c838a82771cb582328456eb # Parent 2604ae7c227b32454f54a8ac626d771c064d8923# Parent 21e67147f9f0375d2fcb5deb64109ef6da2eac49 merge of '24d23e4d11dd1922afff286215a32a9f006efab2' and '7aeeee20b484c6e7d9e486133b950398c71d3686' diff -r 2604ae7c227b -r e21002d106ab finch/libgnt/gntmenu.c --- a/finch/libgnt/gntmenu.c Wed Sep 05 06:24:35 2007 +0000 +++ b/finch/libgnt/gntmenu.c Wed Sep 05 12:56:35 2007 +0000 @@ -221,8 +221,13 @@ { /* check for a trigger key */ GList *iter; + GList *find; GList *nth = g_list_find(menu->list, gnt_tree_get_selection_data(GNT_TREE(menu))); - GList *find = find_item_with_trigger(nth->next, NULL, trigger); + + if (nth == NULL) + return FALSE; + + find = find_item_with_trigger(nth->next, NULL, trigger); if (!find) find = find_item_with_trigger(menu->list, nth->next, trigger); if (!find)