diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 095754051f..620700f418 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -1266,6 +1266,10 @@ SWITCH_DECLARE(void) switch_loadable_module_shutdown(void) switch_hash_index_t *hi; void *val; switch_loadable_module_t *module; + + if (!loadable_modules.module_hash) { + return; + } for (hi = switch_hash_first(NULL, loadable_modules.module_hash); hi; hi = switch_hash_next(hi)) { switch_hash_this(hi, NULL, NULL, &val);