diff --git a/NLog.Web.ASPNET5/Internal/PropertyReader.cs b/NLog.Web.ASPNET5/Internal/PropertyReader.cs
index e95a9ba0..0a34c08d 100644
--- a/NLog.Web.ASPNET5/Internal/PropertyReader.cs
+++ b/NLog.Web.ASPNET5/Internal/PropertyReader.cs
@@ -16,6 +16,11 @@ internal class PropertyReader
/// value
public static object GetValue(string key, Func getVal, bool evaluateAsNestedProperties)
{
+ if (key == null)
+ {
+ return null;
+ }
+
object value;
if (evaluateAsNestedProperties)
{