diff --git a/src/kernel/free_vars.cpp b/src/kernel/free_vars.cpp index 1dfc229f4..3738b780d 100644 --- a/src/kernel/free_vars.cpp +++ b/src/kernel/free_vars.cpp @@ -99,7 +99,7 @@ public: }; bool has_free_vars(expr const & e) { - return has_free_vars_fn()(e); + return e && has_free_vars_fn()(e); } /**