Skip to content

Commit

Permalink
prevent null references
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed May 20, 2021
1 parent d19a7fb commit fc895cd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/Mobile.BuildTools/Models/EnvironmentSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Mobile.BuildTools.Models
{
public class EnvironmentSettings
{
public EnvironmentSettings()
{
Defaults = new Dictionary<string, string>();
Configuration = new Dictionary<string, Dictionary<string, string>>();
}

[JsonProperty("defaults")]
public Dictionary<string, string> Defaults { get; set; }

Expand Down
8 changes: 7 additions & 1 deletion src/Mobile.BuildTools/Models/ImageResize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
namespace Mobile.BuildTools.Models
{
public class ImageResize : ToolItem
{
{
public ImageResize()
{
Directories = new List<string>();
ConditionalDirectories = new Dictionary<string, IEnumerable<string>>();
}

[JsonProperty("directories")]
public List<string> Directories { get; set; }

Expand Down
7 changes: 6 additions & 1 deletion src/Mobile.BuildTools/Models/Secrets/SecretsConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
namespace Mobile.BuildTools.Models.Secrets
{
public class SecretsConfig
{
{
public SecretsConfig()
{
Properties = new List<ValueConfig>();
}

[JsonProperty("disable")]
public bool Disable { get; set; }

Expand Down

0 comments on commit fc895cd

Please sign in to comment.