Fix crash in MacroProcessor::ResolveMacros.

This commit is contained in:
Gunnar Beutner 2013-09-11 14:59:49 +02:00
parent 7f9fdde77e
commit 4b6d8943fa
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ Value MacroProcessor::ResolveMacros(const Value& str, const std::vector<MacroRes
{
Value result;
if (str.IsEmpty())
return Empty;
if (str.IsScalar()) {
result = InternalResolveMacros(str, resolvers, cr, escapeFn, escapeMacros);
} else if (str.IsObjectType<Array>()) {