Fix: event-notifier: Groups may not have an error counter
[deliverable/lttng-modules.git] / src / lttng-event-notifier-notification.c
index 82424e8f0e91ea63849d00e8d538921de4d210a7..f681d9b79d24486ca03fa911967f6cc5fe7e3200 100644 (file)
@@ -355,6 +355,10 @@ void record_error(struct lttng_event_notifier *event_notifier)
        size_t dimension_index[1];
        int ret;
 
+       /* This group may not have an error counter attached to it. */
+       if (!event_notifier_group->error_counter)
+               return;
+
        dimension_index[0] = event_notifier->error_counter_index;
 
        ret = event_notifier_group->error_counter->ops->counter_add(
This page took 0.02311 seconds and 5 git commands to generate.