From f347698a4770c84fb1bd6dfa2f598eeac0f836e4 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 7 Jul 2010 09:13:34 -0500 Subject: [PATCH] MODEVENT-66 --- src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index d2ecca4dcb..8f470568c2 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -345,7 +345,7 @@ static switch_status_t generate_json_cdr(switch_core_session_t *session, struct } json_object_object_add(j_application, "app_name", json_object_new_string(ap->app)); - json_object_object_add(j_application, "app_data", json_object_new_string(ap->arg)); + json_object_object_add(j_application, "app_data", json_object_new_string(ap->arg ? ap->arg : "")); json_object_object_add(j_apps, "application", j_application); }