Unbox possibly null inline class value mapped to primitive type

This commit is contained in:
Dmitry Petrov
2018-12-21 12:41:27 +03:00
parent 2f6c4a0472
commit 5abbf3562b
@@ -477,7 +477,7 @@ public abstract class StackValue {
Type resultType = KotlinTypeMapper.mapUnderlyingTypeOfInlineClassType(targetInlineClassType);
if (TypeUtils.isNullableType(targetInlineClassType) && !isPrimitive(type)) {
if (TypeUtils.isNullableType(targetInlineClassType) && !isPrimitive(resultType)) {
boxOrUnboxWithNullCheck(v, vv -> invokeUnboxMethod(vv, owner, resultType));
}
else {