Permalink
Browse files

Making sure we always return a dictionary instance.

  • Loading branch information...
1 parent f35c6ae commit 42f8085010c5652647498e5f82d4ba09c0739644 @dragan committed Jul 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Mulder.Base/Extensions/YamlExtensions.cs
@@ -61,7 +61,7 @@ public static IList<object> DeserializeYaml(this string text)
string yaml = matches[0].Groups[1].Value;
- return yaml.DeserializeYaml()[0] as IDictionary<string, object>;
+ return yaml.DeserializeYaml()[0] as IDictionary<string, object> ?? new Dictionary<string, object>();
}
public static string ExcludeYamlHeader(this string text)

0 comments on commit 42f8085

Please sign in to comment.