Skip to content

Commit 7cf319c

Browse files
committed
printer_tree BUGFIX lysc_ext.plugin can be NULL
1 parent c0843ce commit 7cf319c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/printer_tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3795,7 +3795,7 @@ trb_ext_iter_next(ly_bool lysc_tree, void *exts, uint64_t *i)
37953795
if (lysc_tree) {
37963796
ce = exts;
37973797
while (*i < LY_ARRAY_COUNT(ce)) {
3798-
if (trp_ext_parent_is_valid(1, &ce[*i])) {
3798+
if (ce->def->plugin && trp_ext_parent_is_valid(1, &ce[*i])) {
37993799
ext = &ce[*i];
38003800
break;
38013801
}

0 commit comments

Comments
 (0)