toString() on nullables fixed

This commit is contained in:
Andrey Breslav
2014-09-03 12:15:16 +04:00
parent 619df3a53e
commit 9fb09e62af
2 changed files with 2 additions and 2 deletions
@@ -554,7 +554,7 @@ private fun createStringConstant(value: CompileTimeConstant<*>?): StringValue? {
is CharValue,
is DoubleValue, is FloatValue,
is BooleanValue,
is NullValue -> StringValue(value.getValue().toString(), value.canBeUsedInAnnotations(), value.usesVariableAsConstant())
is NullValue -> StringValue("${value.getValue()}", value.canBeUsedInAnnotations(), value.usesVariableAsConstant())
else -> null
}
}