Skip to content

Commit

Permalink
Extra null check (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
304NotModified committed Apr 15, 2016
1 parent edb015e commit ea217b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NLog.Web.ASPNET5/Internal/PropertyReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ internal class PropertyReader
/// <returns>value</returns>
public static object GetValue(string key, Func<string, object> getVal, bool evaluateAsNestedProperties)
{
if (key == null)
{
return null;
}

object value;
if (evaluateAsNestedProperties)
{
Expand Down

0 comments on commit ea217b3

Please sign in to comment.