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: