summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-05-27 17:57:06 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-05-27 18:03:24 +0200
commitefa85d688723d795a3b59561ffd37158ad6fc47b (patch)
tree7be75f180662e937f6578b7a6a07338cedb59a57
parentf9d7fedf6adefa4252753727118e81dc8cd39ad7 (diff)
downloadtelepathy-glib-efa85d688723d795a3b59561ffd37158ad6fc47b.tar.gz
tp_handle_ensure: add some pre-conditions
-rw-r--r--telepathy-glib/handle-repo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/handle-repo.c b/telepathy-glib/handle-repo.c
index 886bf1e5a..3601e50f6 100644
--- a/telepathy-glib/handle-repo.c
+++ b/telepathy-glib/handle-repo.c
@@ -178,6 +178,9 @@ tp_handle_ensure (TpHandleRepoIface *self,
gpointer context,
GError **error)
{
+ g_return_val_if_fail (TP_IS_HANDLE_REPO_IFACE (self), 0);
+ g_return_val_if_fail (id != NULL, 0);
+
return TP_HANDLE_REPO_IFACE_GET_CLASS (self)->ensure_handle (self,
id, context, error);
}