Make SetExpression check whether the LHS is null

fixes #7814
This commit is contained in:
Gunnar Beutner 2014-11-24 17:02:22 +01:00
parent fddead5303
commit ed81cb0f2c
1 changed files with 4 additions and 0 deletions

View File

@ -280,6 +280,10 @@ Value SetExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
if (!vexpr) {
object = indexExpr->Evaluate(frame, dhint);
if (!object)
BOOST_THROW_EXCEPTION(ConfigError("Left-hand side argument must not be null."));
continue;
}