If the first etl::span of an etl::multi_span is empty, the first call to etl::multi_span::iterator::operator*() will return a NULL pointer.
In contrast, if another span in the multi_span is empty (not the first), then etl::multi_span::iterator::operator ++() will check for empty spans and skip them correctly.
I suggest to add an appropriate check and skip in etl::multi_span::iterator::iterator(span_list_iterator, span_list_iterator).
If the first
etl::span
of anetl::multi_span
is empty, the first call toetl::multi_span::iterator::operator*()
will return a NULL pointer.In contrast, if another
span
in themulti_span
is empty (not the first), thenetl::multi_span::iterator::operator ++()
will check for emptyspan
s and skip them correctly.I suggest to add an appropriate check and skip in
etl::multi_span::iterator::iterator(span_list_iterator, span_list_iterator)
.