Prevent NPE

Closes gh-1955

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
Tran Ngoc Nhan
2025-04-02 02:30:17 +07:00
committed by Joe Grandja
parent fb619ee188
commit 6bbd62914c

View File

@@ -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) {