aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-10 19:58:38 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-10 19:58:38 +0800
commitc9c63f5412fbf6f7927c857c7f8f04082abbccde (patch)
tree9e5cb6c1e33df403fd40048ae37c3e486e705582 /libempathy-gtk
parentc9add0b7c2ef61469af3ba77fd6fc03dccd6733a (diff)
downloadgsoc2013-empathy-c9c63f5412fbf6f7927c857c7f8f04082abbccde.tar
gsoc2013-empathy-c9c63f5412fbf6f7927c857c7f8f04082abbccde.tar.gz
gsoc2013-empathy-c9c63f5412fbf6f7927c857c7f8f04082abbccde.tar.bz2
gsoc2013-empathy-c9c63f5412fbf6f7927c857c7f8f04082abbccde.tar.lz
gsoc2013-empathy-c9c63f5412fbf6f7927c857c7f8f04082abbccde.tar.xz
gsoc2013-empathy-c9c63f5412fbf6f7927c857c7f8f04082abbccde.tar.zst
gsoc2013-empathy-c9c63f5412fbf6f7927c857c7f8f04082abbccde.zip
start_gnome_contacts: make sure individual is valid
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index 293647a81..7b8da52d1 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -1311,6 +1311,8 @@ start_gnome_contacts (FolksIndividual *individual,
GdkAppLaunchContext *context = NULL;
GdkDisplay *display;
+ g_return_if_fail (FOLKS_IS_INDIVIDUAL (individual));
+
/* Start gnome-contacts */
display = gdk_display_get_default ();
context = gdk_display_get_app_launch_context (display);