diff --git a/src/main/java/sirius/pasta/tagliatelle/compiler/TemplateCompiler.java b/src/main/java/sirius/pasta/tagliatelle/compiler/TemplateCompiler.java index f1338c677..764ef3a85 100644 --- a/src/main/java/sirius/pasta/tagliatelle/compiler/TemplateCompiler.java +++ b/src/main/java/sirius/pasta/tagliatelle/compiler/TemplateCompiler.java @@ -384,6 +384,8 @@ private void parseAttributes(TagHandler handler) { if (attributeType == null) { attributeType = String.class; } else { + // verifyAttributeNameAndType(...) already reports an error if the attributeType is unknown. + // We only save the found and defined attributes. attributes.add(name); }