check the return value of gtk_tree_selection_get_selected()
if there was no selected item, wireshark would crash
but this is very unlikely in practice
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@54656
f5534014-38df-0310-8fa8-
9805f1628bb7
GtkTreePath *path;
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW(tree));
- gtk_tree_selection_get_selected (sel, &model, &iter);
+ if (!gtk_tree_selection_get_selected(sel, &model, &iter))
+ return;
path = gtk_tree_model_get_path(model,&iter);
gtk_tree_model_get (model, &iter, FILTER_NAME, &filter, -1);