[empathy] accounts-dialog: early return if gtk_tree_view_get_selection returns NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] accounts-dialog: early return if gtk_tree_view_get_selection returns NULL
- Date: Fri, 25 Oct 2013 09:46:26 +0000 (UTC)
commit 7fd3e9d678b493a72c51301e233870c9960985ea
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Oct 25 10:46:42 2013 +0200
accounts-dialog: early return if gtk_tree_view_get_selection returns NULL
src/empathy-accounts-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 83f1334..76b460a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]