diff --git a/PluralKit.Core/Utils/HandlerQueue.cs b/PluralKit.Core/Utils/HandlerQueue.cs index abeee1ae..c1238bfc 100644 --- a/PluralKit.Core/Utils/HandlerQueue.cs +++ b/PluralKit.Core/Utils/HandlerQueue.cs @@ -51,7 +51,8 @@ namespace PluralKit.Core public async Task TryHandle(T evt) { - _handlers.RemoveAll(he => !he.Alive); + // Saw spurious NREs in prod indicating `he` is null, add a special check for that for now + _handlers.RemoveAll(he => he == null || !he.Alive); var now = SystemClock.Instance.GetCurrentInstant(); foreach (var entry in _handlers)