missing null check

This commit is contained in:
Shannon
2017-02-02 16:02:29 +11:00
parent 27283754c0
commit 882d5ec7f5

View File

@@ -17,6 +17,11 @@ namespace UmbracoExamine
/// <returns></returns>
public bool TryGetValue(string key, out StaticField field)
{
if (Dictionary == null)
{
field = null;
return false;
}
return Dictionary.TryGetValue(key, out field);
}
}