aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/main/kotlin/plugability/DokkaContext.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/plugability/DokkaContext.kt b/core/src/main/kotlin/plugability/DokkaContext.kt
index 30566d15..5c595c75 100644
--- a/core/src/main/kotlin/plugability/DokkaContext.kt
+++ b/core/src/main/kotlin/plugability/DokkaContext.kt
@@ -131,8 +131,8 @@ private class DokkaContextConfigurationImpl(
overridesInfo: Map<Extension<*, *, *>, Set<Extension<*, *, *>>>
): Map<Extension<*, *, *>, List<Extension<*, *, *>>> {
val reverseOverrideInfo = overridesInfo.flatMap { (ext, set) -> set.map { it to ext } }.toMap()
- return rawAdjacencyList.map { (ext, list) ->
- reverseOverrideInfo.getValue(ext) to list.map { reverseOverrideInfo.getValue(it) }
+ return rawAdjacencyList.mapNotNull { (ext, list) ->
+ reverseOverrideInfo[ext]?.to(list.mapNotNull { reverseOverrideInfo[it] })
}.toMap()
}