Protect against null description
Update `removeLineBreaks` to also work with `null`. See gh-4703
This commit is contained in:
parent
ecf9ce46e7
commit
34b31f1abc
|
@ -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…
Reference in New Issue