Commit 34b31f1a authored by Phillip Webb's avatar Phillip Webb

Protect against null description

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

See gh-4703
parent ecf9ce46
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment