diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-06-18 10:54:25 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-07-01 11:31:35 +0300 |
commit | 83aecbee19cdac80bc616b2fc7b50eb774a69364 (patch) | |
tree | b9d67b4d628e5caa2a967a6d6d2e2404a7f49e13 /main/src/core/MonoDevelop.Core | |
parent | 4cf2f748a6f83266558b296afe16a2f64646ac26 (diff) |
[Core] Avoid a null patterns list
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRule.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRule.cs index fbe794cc66..589c5c6362 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRule.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.FileNesting/NestingRule.cs @@ -52,7 +52,7 @@ namespace MonoDevelop.Projects.FileNesting { Kind = kind; AppliesTo = appliesTo ?? AllFilesWildcard; - this.patterns = patterns?.ToList (); + this.patterns = patterns?.ToList () ?? new List<string> (); } public NestingRuleKind Kind { get; private set; } |