Protect against null description

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

See gh-4703
pull/4764/merge
Phillip Webb 9 years ago
parent ecf9ce46e7
commit 34b31f1abc

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

Loading…
Cancel
Save