mirror of https://github.com/Icinga/icinga2.git
Fix: ScriptFrame's 'Self' attribute gets corrupted when an expressions throws an exception
fixes #9795
This commit is contained in:
parent
9d098482dd
commit
5bd46c2b38
|
@ -460,6 +460,7 @@ ExpressionResult DictExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhint
|
||||||
result = element.GetValue();
|
result = element.GetValue();
|
||||||
}
|
}
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
if (!m_Inline)
|
||||||
std::swap(self, frame.Self);
|
std::swap(self, frame.Self);
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue