}
}
- /* Now we check symbols group */
- gr = g_hash_table_lookup (metric->groups, module_name);
-
- if (gr) {
- if (gr->disabled) {
- msg_info_config ("%s module %s is disabled in the configuration as "
- "its group has been disabled",
- is_c ? "internal" : "lua", module_name);
- return FALSE;
+ if (metric) {
+ /* Now we check symbols group */
+ gr = g_hash_table_lookup (metric->groups, module_name);
+
+ if (gr) {
+ if (gr->disabled) {
+ msg_info_config ("%s module %s is disabled in the configuration as "
+ "its group has been disabled",
+ is_c ? "internal" : "lua", module_name);
+ return FALSE;
+ }
}
}