diff --git a/src/Tgstation.Server.Api/ApiHeaders.cs b/src/Tgstation.Server.Api/ApiHeaders.cs index 2f670f5029..00b7733715 100644 --- a/src/Tgstation.Server.Api/ApiHeaders.cs +++ b/src/Tgstation.Server.Api/ApiHeaders.cs @@ -244,7 +244,7 @@ namespace Tgstation.Server.Api else { var auth = authorization.First(); - var splits = new List(auth.Split(' ')); + var splits = new List(auth?.Split(' ') ?? Enumerable.Empty()); var scheme = splits.First(); if (String.IsNullOrWhiteSpace(scheme)) AddError(HeaderErrorTypes.AuthorizationInvalid, "Missing authentication scheme!");