From f0889c3652b2ab40ac9aa1c459b7ac486e5f9d77 Mon Sep 17 00:00:00 2001 From: George Lemon Date: Tue, 27 Feb 2024 06:38:44 +0200 Subject: [PATCH] check nil Signed-off-by: George Lemon --- src/tim/engine/compilers/html.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tim/engine/compilers/html.nim b/src/tim/engine/compilers/html.nim index 27a606d..8d721fb 100755 --- a/src/tim/engine/compilers/html.nim +++ b/src/tim/engine/compilers/html.nim @@ -347,6 +347,7 @@ proc evalCmd(c: var HtmlCompiler, node: Node, scopetables: var seq[ScopeTable]): proc infixEvaluator(c: var HtmlCompiler, lhs, rhs: Node, infixOp: InfixOp, scopetables: var seq[ScopeTable]): bool = # Evaluates comparison expressions + if unlikely(lhs == nil or rhs == nil): return case infixOp: of EQ: case lhs.nt: