diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-07-01 19:16:38 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-07 10:07:21 +0200 |
commit | 145a63c9d39c1c59c4a5d6c81dabd078d64edd4b (patch) | |
tree | 711fb7b3a2c96d9e8b8bf2667ead9fbadbcbca43 /core | |
parent | 0533ef9a56ae34138a3f8a5e996805713c48c384 (diff) | |
download | dokka-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.kt | 4 |
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() } |