diff --git a/BTCPayServer/Controllers/Logic/ListCookiePreference.cs b/BTCPayServer/Controllers/Logic/ListCookiePreference.cs index f4617e118..0ce448672 100644 --- a/BTCPayServer/Controllers/Logic/ListCookiePreference.cs +++ b/BTCPayServer/Controllers/Logic/ListCookiePreference.cs @@ -43,7 +43,13 @@ namespace BTCPayServer.Controllers.Logic var prefCookie = new UserPrefsCookie(); ctrl.Request.Cookies.TryGetValue(nameof(UserPrefsCookie), out var strPrefCookie); if (!String.IsNullOrEmpty(strPrefCookie)) - prefCookie = JsonConvert.DeserializeObject(strPrefCookie); + { + try + { + prefCookie = JsonConvert.DeserializeObject(strPrefCookie); + } + catch { /* ignore cookie deserialization failures */ } + } return prefCookie; }