summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/post.cc3
1 files changed, 2 insertions, 1 deletions
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_t&>& 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(),