aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-28 17:00:42 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-04 16:58:03 +0100
commit77702901cf9255da9a1390b4f01f986da78e58b6 (patch)
treee37ff64d708cf056449e73ba38eccda4fa1a24ef /plugins/base
parentbe35f8628fbbfe3cc248f6c504a664a77d37c8e7 (diff)
downloaddokka-77702901cf9255da9a1390b4f01f986da78e58b6.tar.gz
dokka-77702901cf9255da9a1390b4f01f986da78e58b6.tar.bz2
dokka-77702901cf9255da9a1390b4f01f986da78e58b6.zip
fixed npe during stdlib generation
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index ad28a4bc..117dd552 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -217,8 +217,8 @@ open class DokkaDescriptorVisitor( // TODO: close this class and make it private
},
sources = actual,
getter = descriptor.accessors.filterIsInstance<PropertyGetterDescriptor>().singleOrNull()?.let {
- visitPropertyAccessorDescriptor(it, descriptor, dri)
- }!!,
+ visitPropertyAccessorDescriptor(it, descriptor, dri)
+ },
setter = descriptor.accessors.filterIsInstance<PropertySetterDescriptor>().singleOrNull()?.let {
visitPropertyAccessorDescriptor(it, descriptor, dri)
},