diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-05-27 20:36:31 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-05-27 20:36:31 +0200 |
commit | f15a0711ae11b3a9f3868adc0e8be7a27b4f6346 (patch) | |
tree | 0e2952ae7c7697de99fc891d9a9fda50393a3fe7 /src/Kotlin | |
parent | 76a97fa0426e7977329adc65483eabaa85fa14c4 (diff) | |
download | dokka-f15a0711ae11b3a9f3868adc0e8be7a27b4f6346.tar.gz dokka-f15a0711ae11b3a9f3868adc0e8be7a27b4f6346.tar.bz2 dokka-f15a0711ae11b3a9f3868adc0e8be7a27b4f6346.zip |
don't crash if we failed to resolve base type for an extension function
Diffstat (limited to 'src/Kotlin')
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index 02ced7a4..967c20ca 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -379,7 +379,8 @@ class DocumentationBuilder(val resolutionFacade: ResolutionFacade, externalClassNodes: MutableMap<FqName, DocumentationNode>): DocumentationNode { if (descriptor is CallableMemberDescriptor) { val extensionClassDescriptor = descriptor.getExtensionClassDescriptor() - if (extensionClassDescriptor != null && !isSamePackage(descriptor, extensionClassDescriptor)) { + if (extensionClassDescriptor != null && !isSamePackage(descriptor, extensionClassDescriptor) && + !ErrorUtils.isError(extensionClassDescriptor)) { val fqName = DescriptorUtils.getFqNameFromTopLevelClass(extensionClassDescriptor) return externalClassNodes.getOrPut(fqName, { val newNode = DocumentationNode(fqName.asString(), Content.Empty, Kind.ExternalClass) |