Skip to content

Commit 898af1d

Browse files
committed
GH-1432 - Polishing.
Properly look up documentation for modules.
1 parent 23f94f5 commit 898af1d

File tree

1 file changed

+1
-1
lines changed
  • spring-modulith-docs/src/main/java/org/springframework/modulith/docs

1 file changed

+1
-1
lines changed

spring-modulith-docs/src/main/java/org/springframework/modulith/docs/Asciidoctor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public String renderBeanReferences(ApplicationModule module) {
411411
}
412412

413413
public String renderModuleDescription(ApplicationModule module) {
414-
return docSource.get().getDocumentation(module.getBasePackage()).orElse("");
414+
return docSource.flatMap(it -> it.getDocumentation(module.getBasePackage())).orElse("");
415415
}
416416

417417
public String renderHeadline(int i, String modules) {

0 commit comments

Comments
 (0)