particle/progress-bar: assert sub particles where instantiated correctly

This commit is contained in:
Daniel Eklöf 2020-11-02 19:04:55 +01:00
parent 86ef9dcc02
commit c3cfae13e8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -210,6 +210,8 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
epriv->exposables[idx++] = p->end_marker->instantiate(p->end_marker, tags); epriv->exposables[idx++] = p->end_marker->instantiate(p->end_marker, tags);
assert(idx == epriv->count); assert(idx == epriv->count);
for (size_t i = 0; i < epriv->count; i++)
assert(epriv->exposables[i] != NULL);
char *on_click = tags_expand_template(particle->on_click_template, tags); char *on_click = tags_expand_template(particle->on_click_template, tags);