Prevent NPE
Closes gh-1955 Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
committed by
Joe Grandja
parent
fb619ee188
commit
6bbd62914c
@@ -79,6 +79,7 @@ public class SpringJavadocApiPlugin implements Plugin<Project> {
|
||||
public void setExcludes(String... excludes) {
|
||||
if (excludes == null) {
|
||||
this.excludes = Collections.emptySet();
|
||||
return;
|
||||
}
|
||||
this.excludes = new HashSet<>(excludes.length);
|
||||
for (String exclude : excludes) {
|
||||
|
||||
Reference in New Issue
Block a user