fix build errors

This commit is contained in:
Nikolaj Geisle
2022-04-04 10:34:13 +02:00
parent 57190fc676
commit 4710951185
48 changed files with 117 additions and 87 deletions

View File

@@ -47,7 +47,7 @@ namespace Umbraco.Extensions
if (!hasCookie) return false;
// get the cookie value
if (!httpContext.Request.Cookies.TryGetValue(cookieName, out var cookieVal))
if (httpContext is null || !httpContext.Request.Cookies.TryGetValue(cookieName, out var cookieVal))
{
return false;
}