aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 930dc3baf..abd8702c0 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1581,6 +1581,8 @@ add_file_to_manager (EmpathyTpFile *tp_file,
void
empathy_send_file_with_file_chooser_and_manager (EmpathyContact *contact)
{
+ g_return_if_fail (EMPATHY_IS_CONTACT (contact));
+
empathy_send_file_with_file_chooser (contact,
(EmpathyFileChooserCallback) add_file_to_manager,
empathy_ft_manager_get_default ());