Skip to content

Commit

Permalink
Fixed arguments being null
Browse files Browse the repository at this point in the history
  • Loading branch information
danae committed Sep 3, 2024
1 parent caa81aa commit b963efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Strings/LocalizedString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public override string ToString()
// Resolve the localized string
LocalizedStringResolver ILocalizedString.Resolve(IMessageFormatProvider formatProvider, IReadOnlyDictionary<string, object> extraArguments)
{
var actualArguments = extraArguments != null ? _arguments.Merge(extraArguments, g => g.First()) : _arguments;
var actualArguments = _arguments != null ? (extraArguments != null ? _arguments.Merge(extraArguments, g => g.First()) : _arguments) : new Dictionary<string, object>();

if (!string.IsNullOrEmpty(_path))
{
Expand Down

0 comments on commit b963efa

Please sign in to comment.