git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9159
d0543943-73ff-0310-b7d9-
9358b9ac24b2
} else if (!strcasecmp(argv[0], "profile")) {
struct cb_helper cb;
- if ((profile = sofia_glue_find_profile(argv[1]))) {
+ if ((argv[1]) && (profile = sofia_glue_find_profile(argv[1]))) {
stream->write_function(stream, "%s\n", line);
stream->write_function(stream, "Name \t\t%s\n", switch_str_nil(argv[1]));
stream->write_function(stream, "Domain Name \t\t%s\n", switch_str_nil(profile->domain_name));