aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-13 13:12:43 +0300
committerEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-13 13:12:43 +0300
commit6ad0c3bd63f9f5a5ed46f6f59bf00b1ddfeec794 (patch)
tree0aac29ba580c3f9f8e8f096448d958ee3fd45839 /core
parent139df725d26491ecee061076b9f9e36ea788eecf (diff)
downloaddokka-6ad0c3bd63f9f5a5ed46f6f59bf00b1ddfeec794.tar.gz
dokka-6ad0c3bd63f9f5a5ed46f6f59bf00b1ddfeec794.tar.bz2
dokka-6ad0c3bd63f9f5a5ed46f6f59bf00b1ddfeec794.zip
more info instead of NPE
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/Generation/DocumentationMerger.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Generation/DocumentationMerger.kt b/core/src/main/kotlin/Generation/DocumentationMerger.kt
index a464ead6..45233a50 100644
--- a/core/src/main/kotlin/Generation/DocumentationMerger.kt
+++ b/core/src/main/kotlin/Generation/DocumentationMerger.kt
@@ -83,7 +83,7 @@ class DocumentationMerger(
refs: List<DocumentationReference>
): List<DocumentationReference> {
val membersBySignature: Map<String, List<DocumentationNode>> = refs.map { it.to }
- .groupBy { signatureMap[it]!! }
+ .groupBy { signatureMap[it] ?: error("Unresolved signatures: ${it.kind} ${it.name}") }
val mergedMembers: MutableList<DocumentationReference> = mutableListOf()
for ((signature, members) in membersBySignature) {