From b3e21e8ae240cb2a44a56b174b12d50740264fcc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 Mar 2012 05:53:49 -0600 Subject: Guarded a call to add_or_set_value --- src/post.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/post.cc b/src/post.cc index e0ca149f..191a9142 100644 --- a/src/post.cc +++ b/src/post.cc @@ -606,7 +606,8 @@ bool post_t::valid() const void post_t::add_to_value(value_t& value, const optional& expr) const { if (xdata_ && xdata_->has_flags(POST_EXT_COMPOUND)) { - add_or_set_value(value, xdata_->compound_value); + if (! xdata_->compound_value.is_null()) + add_or_set_value(value, xdata_->compound_value); } else if (expr) { bind_scope_t bound_scope(*expr->get_context(), -- cgit v1.2.3