Browse Source

Protect against null description

Update `removeLineBreaks` to also work with `null`.

See gh-4703
pull/4764/merge
Phillip Webb 10 years ago
parent
commit
34b31f1abc
  1. 2
      spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java

2
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java

@ -268,7 +268,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
} }
private String removeLineBreaks(String description) { private String removeLineBreaks(String description) {
return description.replaceAll("\\s+", " "); return (description == null ? null : description.replaceAll("\\s+", " "));
} }
private void putIfMissing(Properties properties, String key, private void putIfMissing(Properties properties, String key,

Loading…
Cancel
Save