Skip to content

Commit 6bbd629

Browse files
ngocnhan-tran1996jgrandja
authored andcommitted
Prevent NPE
Closes gh-1955 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent fb619ee commit 6bbd629

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

buildSrc/src/main/java/org/springframework/gradle/docs/SpringJavadocApiPlugin.java

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public void execute(Task task) {
7979
public void setExcludes(String... excludes) {
8080
if (excludes == null) {
8181
this.excludes = Collections.emptySet();
82+
return;
8283
}
8384
this.excludes = new HashSet<>(excludes.length);
8485
for (String exclude : excludes) {

0 commit comments

Comments
 (0)