New J2K: Fix NPE if no constructor was found in ImplicitInitializerConversion
This commit is contained in:
committed by
Ilya Kirillov
parent
6182edadfd
commit
c05a01e12b
@@ -92,7 +92,7 @@ class ImplicitInitializerConversion(private val context: ConversionContext) : Re
|
|||||||
if (initialized) continue
|
if (initialized) continue
|
||||||
val parentConstructors =
|
val parentConstructors =
|
||||||
generateSequence(constructor) { it.parentConstructor() }
|
generateSequence(constructor) { it.parentConstructor() }
|
||||||
if (parentConstructors.any { constructors[it]!! }) {
|
if (parentConstructors.any { constructors[it] == true }) {
|
||||||
parentConstructors.forEach { constructors[it] = true }
|
parentConstructors.forEach { constructors[it] = true }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user