mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 01:39:02 +00:00
Protect against null description
Update `removeLineBreaks` to also work with `null`. See gh-4703
This commit is contained in:
+1
-1
@@ -268,7 +268,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
|
||||
}
|
||||
|
||||
private String removeLineBreaks(String description) {
|
||||
return description.replaceAll("\\s+", " ");
|
||||
return (description == null ? null : description.replaceAll("\\s+", " "));
|
||||
}
|
||||
|
||||
private void putIfMissing(Properties properties, String key,
|
||||
|
||||
Reference in New Issue
Block a user