- event_header =
- bt_ctf_field_create(validation_output.event_header_type);
- if (!event_header) {
- BT_LOGE_STR("Cannot create initial event header field object.");
- goto error;
+
+ if (validation_output.event_header_type) {
+ BT_LOGD("Creating initial event header field: ft-addr=%p",
+ validation_output.event_header_type);
+ event_header =
+ bt_ctf_field_create(validation_output.event_header_type);
+ if (!event_header) {
+ BT_LOGE_STR("Cannot create initial event header field object.");
+ goto error;
+ }