aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-07-01 19:16:38 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-07 10:07:21 +0200
commit145a63c9d39c1c59c4a5d6c81dabd078d64edd4b (patch)
tree711fb7b3a2c96d9e8b8bf2667ead9fbadbcbca43 /core
parent0533ef9a56ae34138a3f8a5e996805713c48c384 (diff)
downloaddokka-145a63c9d39c1c59c4a5d6c81dabd078d64edd4b.tar.gz
dokka-145a63c9d39c1c59c4a5d6c81dabd078d64edd4b.tar.bz2
dokka-145a63c9d39c1c59c4a5d6c81dabd078d64edd4b.zip
Probably fix the missing adjecent extension bug
Diffstat (limited to 'core')
-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()
}