diff --git a/lib/exprengine.cpp b/lib/exprengine.cpp index 900354066..255f7f110 100644 --- a/lib/exprengine.cpp +++ b/lib/exprengine.cpp @@ -580,6 +580,9 @@ struct ExprData { } if (auto c = std::dynamic_pointer_cast(v)) { + if (c->values.empty()) + throw VerifyException(nullptr, "ConditionalValue is empty"); + if (c->values.size() == 1) return getExpr(c->values[0].second);