diff options
Diffstat (limited to 'main/stasis_endpoints.c')
-rw-r--r-- | main/stasis_endpoints.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/stasis_endpoints.c b/main/stasis_endpoints.c index e3f5a3f15..737468177 100644 --- a/main/stasis_endpoints.c +++ b/main/stasis_endpoints.c @@ -150,6 +150,9 @@ struct stasis_message *ast_endpoint_blob_create(struct ast_endpoint *endpoint, RAII_VAR(struct ast_endpoint_blob *, obj, NULL, ao2_cleanup); RAII_VAR(struct stasis_message *, msg, NULL, ao2_cleanup); + if (!type) { + return NULL; + } if (!blob) { blob = ast_json_null(); } |