diff --git a/crates/compiler/mono/src/perceus.rs b/crates/compiler/mono/src/perceus.rs index 4acee5b3e4..ce57b19f41 100644 --- a/crates/compiler/mono/src/perceus.rs +++ b/crates/compiler/mono/src/perceus.rs @@ -251,7 +251,10 @@ impl VariableUsage { expr: &Expr<'a>, ) -> VariableUsage { match expr { - Expr::Literal(_) | Expr::EmptyArray | Expr::RuntimeErrorFunction(_) => { + Expr::Literal(_) + | Expr::NullPointer + | Expr::EmptyArray + | Expr::RuntimeErrorFunction(_) => { // Literals, empty arrays, and runtime errors are not (and have nothing) reference counted. VariableUsage::default() }