Closes gh-1955 Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
@@ -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) {