Skip to content

Commit

Permalink
Default bundles to empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconsole committed Aug 3, 2023
1 parent 4f13efa commit 81f8a1b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void setMappings(List<HashMap<String, String>> mappings) {
private String prefix;
@Value("${spring.sitemesh.decorator.metaTag:decorator}")
private String metaTagName;
@Value("${spring.sitemesh.decorator.bundles}")
@Value("${spring.sitemesh.decorator.bundles:}")
private List<String> bundles;

@Bean
Expand All @@ -47,11 +47,9 @@ protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
builder.addDecoratorPath(decorator.get("path"), decorator.get("decorator"));
}
}
if (bundles != null) {
for (String bundle : bundles) {
if (bundle.trim().equals("sm2")) {
builder.addTagRuleBundle(new Sm2TagRuleBundle());
}
for (String bundle : bundles) {
if (bundle.trim().equals("sm2")) {
builder.addTagRuleBundle(new Sm2TagRuleBundle());
}
}
}
Expand Down

0 comments on commit 81f8a1b

Please sign in to comment.