Skip to content

Groovy Templates fails with an NPE when rendering an auto new line #47139

@neveler

Description

@neveler
// home.tpl
div {
  p('Hello!')
}
# 3.5.5 | application.yaml
spring:
  groovy:
    template:
      auto-new-line: true
# 3.4.9 | application.yaml
spring:
  groovy:
    template:
      configuration:
        auto-new-line: true
java.lang.NullPointerException: Cannot invoke "Object.toString()" because "obj" is null

Renders correctly on Spring Boot 3.4.9, but throws an error on 3.5.5.

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions