Skip to content

Commit 89c64ef

Browse files
committed
Only apply properties to GroovyMarkupConfigurer which are not null
1 parent 011d42c commit 89c64ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/spring-boot-groovy-templates/src/main/java/org/springframework/boot/groovy/template/autoconfigure/GroovyTemplateAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private boolean isUsingGroovyAllJar() {
114114
GroovyMarkupConfigurer groovyMarkupConfigurer(ObjectProvider<MarkupTemplateEngine> templateEngine,
115115
Environment environment) {
116116
GroovyMarkupConfigurer configurer = new GroovyMarkupConfigurer();
117-
PropertyMapper map = PropertyMapper.get();
117+
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
118118
map.from(this.properties::isAutoEscape).to(configurer::setAutoEscape);
119119
map.from(this.properties::isAutoIndent).to(configurer::setAutoIndent);
120120
map.from(this.properties::getAutoIndentString).to(configurer::setAutoIndentString);

0 commit comments

Comments
 (0)