diff options
Diffstat (limited to 'gfbgraph/gfbgraph-simple-authorizer.c')
-rw-r--r-- | gfbgraph/gfbgraph-simple-authorizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gfbgraph/gfbgraph-simple-authorizer.c b/gfbgraph/gfbgraph-simple-authorizer.c index 1f4d6e9..6e503c4 100644 --- a/gfbgraph/gfbgraph-simple-authorizer.c +++ b/gfbgraph/gfbgraph-simple-authorizer.c @@ -203,5 +203,7 @@ gfbgraph_simple_authorizer_refresh_authorization (GFBGraphAuthorizer *iface, GCa GFBGraphSimpleAuthorizer* gfbgraph_simple_authorizer_new (const gchar *access_token) { + g_return_val_if_fail (access_token != NULL, NULL); + return GFBGRAPH_SIMPLE_AUTHORIZER (g_object_new (GFBGRAPH_TYPE_SIMPLE_AUTHORIZER, "access-token", access_token, NULL)); } |