[NI] Fix exception, don't try to get parent on root fqName
#EA-119579 Fixed
This commit is contained in:
@@ -156,7 +156,10 @@ class ReflectionTypes(module: ModuleDescriptor, private val notFoundClasses: Not
|
|||||||
|
|
||||||
val shortName = descriptor.name.asString()
|
val shortName = descriptor.name.asString()
|
||||||
|
|
||||||
val packageName = DescriptorUtils.getFqName(descriptor).parent().toSafe()
|
val fqName = DescriptorUtils.getFqName(descriptor)
|
||||||
|
if (fqName.isRoot) return false
|
||||||
|
|
||||||
|
val packageName = fqName.parent().toSafe()
|
||||||
if (packageName == KOTLIN_REFLECT_FQ_NAME) {
|
if (packageName == KOTLIN_REFLECT_FQ_NAME) {
|
||||||
return shortName.startsWith("KFunction") // KFunctionN, KFunction
|
return shortName.startsWith("KFunction") // KFunctionN, KFunction
|
||||||
|| shortName.startsWith("KProperty") // KPropertyN, KProperty
|
|| shortName.startsWith("KProperty") // KPropertyN, KProperty
|
||||||
|
|||||||
Reference in New Issue
Block a user