Skip to content

Commit 7a000e6

Browse files
committed
Work around null return from getMetaAnnotationTypes during doc generation
1 parent db903c2 commit 7a000e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-docs/src/main/groovy/generateTestSlicesTable.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Set<String> findMetaImporters(AnnotationMetadata annotationMetadata) {
9494
}
9595

9696
boolean isAutoConfigurationImporter(String annotationType, AnnotationMetadata metadata) {
97-
metadata.getMetaAnnotationTypes(annotationType).contains('org.springframework.boot.autoconfigure.ImportAutoConfiguration')
97+
metadata.getMetaAnnotationTypes(annotationType)?.contains('org.springframework.boot.autoconfigure.ImportAutoConfiguration')
9898
}
9999

100100
void writeTestSlicesTable(List<TestSlice> testSlices) {

0 commit comments

Comments
 (0)