diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-03-21 13:41:43 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-06-13 14:18:31 +0200 |
commit | b519e0e4f3c795efba1eb6632d6440d142340bb8 (patch) | |
tree | 43f82fb798a0fc6222fa00c314b35d4f51334d99 /core/src/main | |
parent | dd52a052d3d060adfafcf4a0237a274a241b8e33 (diff) | |
download | dokka-b519e0e4f3c795efba1eb6632d6440d142340bb8.tar.gz dokka-b519e0e4f3c795efba1eb6632d6440d142340bb8.tar.bz2 dokka-b519e0e4f3c795efba1eb6632d6440d142340bb8.zip |
Fix NPE after release 0.9.18
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt b/core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt index bcac0182..c72dbdda 100644 --- a/core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt +++ b/core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt @@ -3,6 +3,7 @@ package org.jetbrains.dokka import com.intellij.psi.PsiElement import com.intellij.psi.PsiMember import com.intellij.psi.PsiPackage +import org.jetbrains.kotlin.asJava.classes.KtLightClassForFacade import org.jetbrains.kotlin.asJava.elements.KtLightElement import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.name.FqName @@ -26,6 +27,7 @@ fun PsiElement.extractDescriptor(resolutionFacade: DokkaResolutionFacade): Decla val forPsi = this return when (forPsi) { + is KtLightClassForFacade -> resolutionFacade.moduleDescriptor.getPackage(forPsi.fqName) is KtLightElement<*, *> -> return (forPsi.kotlinOrigin!!).extractDescriptor(resolutionFacade) is PsiPackage -> resolutionFacade.moduleDescriptor.getPackage(FqName(forPsi.qualifiedName)) is PsiMember -> forPsi.getJavaOrKotlinMemberDescriptor(resolutionFacade) |