diff --git a/common/libeval_compiler/libeval_compiler.cpp b/common/libeval_compiler/libeval_compiler.cpp index 4f812f114c..e45681dd6e 100644 --- a/common/libeval_compiler/libeval_compiler.cpp +++ b/common/libeval_compiler/libeval_compiler.cpp @@ -1088,8 +1088,11 @@ void UOP::Exec( CONTEXT* ctx ) { case TR_UOP_PUSH_VAR: { - auto value = ctx->AllocValue(); - value->Set( m_ref->GetValue( ctx ) ); + VALUE* value = ctx->AllocValue(); + + if( m_ref ) + value->Set( m_ref->GetValue( ctx ) ); + ctx->Push( value ); } break;