Fixed segfault with unresolvable aliases in Jinja templates

This commit is contained in:
Bartek Kryza
2022-12-23 15:45:14 +01:00
parent d83a1f1805
commit 838b5a4b0d
2 changed files with 25 additions and 10 deletions

View File

@@ -13,9 +13,13 @@ diagrams:
plantuml:
after:
- >
note left of {{ alias("A") }}
{{ comment("clanguml::t00050::A").formatted }}
end note
note left of {{ alias("NoSuchClass") }}
{{ comment("NoSuchClass").formatted }}
end note
- >
note left of {{ alias("A") }}
{{ comment("clanguml::t00050::A").formatted }}
end note
- >
note right of {{ element("clanguml::t00050::A").alias }}
{% set e=element("clanguml::t00050::A") %} {{ e.comment.formatted }}