X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Fevent-notifier-notification.c;h=5f7d9d58f24b67bf04fb4cf5fef6b2e8854f8895;hb=c30ad764fc2500598086902cf3bd2801b9c05c64;hp=ae997eb703a2d5d7053b7980b6e01a8ae28dd1fa;hpb=f03092d7780681b375484769c2f0e20ed0f0d2a2;p=lttng-ust.git diff --git a/liblttng-ust/event-notifier-notification.c b/liblttng-ust/event-notifier-notification.c index ae997eb7..5f7d9d58 100644 --- a/liblttng-ust/event-notifier-notification.c +++ b/liblttng-ust/event-notifier-notification.c @@ -287,6 +287,10 @@ static 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( event_notifier_group->error_counter->counter,