From 44db9304c5596b2c43e6bd127012c0451a431812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 2 Nov 2020 19:05:14 +0100 Subject: [PATCH] particle/ramp: assert sub particles where instantiated correctly --- particles/ramp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/particles/ramp.c b/particles/ramp.c index b513681..db63aff 100644 --- a/particles/ramp.c +++ b/particles/ramp.c @@ -122,6 +122,7 @@ instantiate(const struct particle *particle, const struct tag_set *tags) struct eprivate *e = calloc(1, sizeof(*e)); e->exposable = pp->instantiate(pp, tags); + assert(e->exposable != NULL); char *on_click = tags_expand_template(particle->on_click_template, tags); struct exposable *exposable = exposable_common_new(particle, on_click);