Fix: various fixes for ctf-traces/succeed test cases
[babeltrace.git] / plugins / ctf / common / notif-iter / notif-iter.c
index 0409ac01a90fbaa44214aa246dcccff96dfe3b63..87e0581ddb63ef2f6b3ccf15eb582818ad92cdb1 100644 (file)
@@ -1048,7 +1048,9 @@ enum bt_ctf_notif_iter_status set_current_packet_content_sizes(
        struct bt_ctf_field *content_size_field = NULL;
        uint64_t content_size = -1, packet_size = -1;
 
-       assert(notit->dscopes.stream_packet_context);
+       if (!notit->dscopes.stream_packet_context) {
+               goto end;
+       }
 
        packet_size_field = bt_ctf_field_structure_get_field(
                notit->dscopes.stream_packet_context, "packet_size");
This page took 0.022529 seconds and 4 git commands to generate.