From f3c2a48f92eda5ed3dd16337c1824f28851a95e3 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Mon, 14 Nov 2011 20:56:36 +0400 Subject: [PATCH] null is valid compile time value --- .../backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java b/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java index 9ce660adcbe..2ec13c784e8 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java @@ -62,8 +62,7 @@ public class PropertyCodegen { if (initializer != null) { if (initializer instanceof JetConstantExpression) { CompileTimeConstant compileTimeValue = state.getBindingContext().get(BindingContext.COMPILE_TIME_VALUE, initializer); - assert compileTimeValue != null; - value = compileTimeValue.getValue(); + value = compileTimeValue != null ? compileTimeValue.getValue() : null; } } final int modifiers;