aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-25 16:46:42 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-25 17:44:41 +0800
commit7fd3e9d678b493a72c51301e233870c9960985ea (patch)
treeb935021fa1d5f365d0e9f22e9818cbc677e91d73
parent7102b6cd6883c326ef6b1cf56f4c846b0996b271 (diff)
downloadgsoc2013-empathy-7fd3e9d678b493a72c51301e233870c9960985ea.tar
gsoc2013-empathy-7fd3e9d678b493a72c51301e233870c9960985ea.tar.gz
gsoc2013-empathy-7fd3e9d678b493a72c51301e233870c9960985ea.tar.bz2
gsoc2013-empathy-7fd3e9d678b493a72c51301e233870c9960985ea.tar.lz
gsoc2013-empathy-7fd3e9d678b493a72c51301e233870c9960985ea.tar.xz
gsoc2013-empathy-7fd3e9d678b493a72c51301e233870c9960985ea.tar.zst
gsoc2013-empathy-7fd3e9d678b493a72c51301e233870c9960985ea.zip
accounts-dialog: early return if gtk_tree_view_get_selection returns NULL
-rw-r--r--src/empathy-accounts-dialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 83f1334cb..76b460a7e 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -279,6 +279,8 @@ account_is_selected (EmpathyAccountsDialog *dialog,
return FALSE;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->treeview));
+ if (selection == NULL)
+ return FALSE;
if (!gtk_tree_selection_get_selected (selection, &model, &iter))
return FALSE;