diff --git a/common/libeval_compiler/libeval_compiler.cpp b/common/libeval_compiler/libeval_compiler.cpp index 139e378846..c322ef7416 100644 --- a/common/libeval_compiler/libeval_compiler.cpp +++ b/common/libeval_compiler/libeval_compiler.cpp @@ -626,7 +626,12 @@ bool COMPILER::generateUCode( UCODE* aCode, CONTEXT* aPreflightContext ) return visitedNodes.find( node ) != visitedNodes.end(); }; - assert( m_tree ); + if( !m_tree ) + { + // Empty expression returns true + aCode->AddOp( makeUop( TR_UOP_PUSH_VALUE, 1.0 ) ); + return true; + } stack.push_back( m_tree );