Skip to content

Commit

Permalink
fixes #12276
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Jan 27, 2022
1 parent 2fd955e commit bcc2ca0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cascadia/TerminalSettingsModel/JsonUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ namespace Microsoft::Terminal::Settings::Model::JsonUtils
val.push_back(trait.FromJson(element));
}
}
else
// If the value was null, then we want to accept the value, with an
// empty array, not an array with a single empty string in it.
// See GH#12276
else if (!json.isNull())
{
val.push_back(trait.FromJson(json));
}
Expand Down

0 comments on commit bcc2ca0

Please sign in to comment.