commit | 7cf319ca53e3ab824c2365ff92009010ec783500 | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Fri Jan 13 10:51:49 2023 +0100 |
committer | aPiecek <piecek@cesnet.cz> | Fri Jan 13 10:51:49 2023 +0100 |
tree | 0954e8d8f89952eb6954d8f42b1953a46992fe30 | |
parent | c0843ce5c9c2fb8f552f6cf327813fdcdce3f56e [diff] [blame] |
printer_tree BUGFIX lysc_ext.plugin can be NULL
diff --git a/src/printer_tree.c b/src/printer_tree.c index c498086..6a7e7ce 100644 --- a/src/printer_tree.c +++ b/src/printer_tree.c
@@ -3795,7 +3795,7 @@ if (lysc_tree) { ce = exts; while (*i < LY_ARRAY_COUNT(ce)) { - if (trp_ext_parent_is_valid(1, &ce[*i])) { + if (ce->def->plugin && trp_ext_parent_is_valid(1, &ce[*i])) { ext = &ce[*i]; break; }