Fix crash in ConfigItem::RunWithActivationContext

fixes #11085
This commit is contained in:
Gunnar Beutner 2016-02-04 13:17:37 +01:00
parent b3b2eb856b
commit 6cd931726d
1 changed files with 3 additions and 2 deletions

View File

@ -521,8 +521,6 @@ bool ConfigItem::CommitItems(const ActivationContext::Ptr& context, WorkQueue& u
return false;
}
ASSERT(newItems.size() > 0);
ApplyRule::CheckMatches();
/* log stats for external parsers */
@ -593,6 +591,9 @@ bool ConfigItem::RunWithActivationContext(const Function::Ptr& function)
{
ActivationScope scope;
if (!function)
BOOST_THROW_EXCEPTION(ScriptError("'function' argument must not be null."));
{
ScriptFrame frame;
function->Invoke();