New J2K: Fix NPE if no constructor was found in ImplicitInitializerConversion

This commit is contained in:
Ilya Kirillov
2019-04-01 13:04:58 +03:00
committed by Ilya Kirillov
parent 6182edadfd
commit c05a01e12b
@@ -92,7 +92,7 @@ class ImplicitInitializerConversion(private val context: ConversionContext) : Re
if (initialized) continue
val parentConstructors =
generateSequence(constructor) { it.parentConstructor() }
if (parentConstructors.any { constructors[it]!! }) {
if (parentConstructors.any { constructors[it] == true }) {
parentConstructors.forEach { constructors[it] = true }
}
}