Skip to content

Commit

Permalink
fix: adds initializer for dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ndorin committed May 22, 2024
1 parent 983b18d commit 2f9038a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ namespace PepperDash.Essentials.Core.Config
public class AudioControlPointListItem
{
[JsonProperty("levelControls")]
public Dictionary<string, LevelControlListItem> LevelControls { get; set; }
public Dictionary<string, LevelControlListItem> LevelControls { get; set; } = new Dictionary<string, LevelControlListItem>();

[JsonProperty("presets")]
public Dictionary<string, PresetListItem> Presets { get; set; }
public Dictionary<string, PresetListItem> Presets { get; set; } = new Dictionary<string, PresetListItem>();

}
}

0 comments on commit 2f9038a

Please sign in to comment.