start_gnome_contacts: make sure individual is valid
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 10 Feb 2012 11:58:38 +0000 (12:58 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 10 Feb 2012 11:58:38 +0000 (12:58 +0100)
libempathy-gtk/empathy-individual-menu.c

index 293647a81f1f253fa5b7ad49bbefa8738c33147b..7b8da52d1e83a99195a214c8fbd78f98fdbe4fbd 100644 (file)
@@ -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);