Protect against null description

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

See gh-4703
This commit is contained in:
Phillip Webb 2015-12-11 17:40:28 +00:00
parent ecf9ce46e7
commit 34b31f1abc

View File

@ -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,