mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Fix a NullReferenceException that should be an ArgumentNullException
This commit is contained in:
@@ -205,7 +205,7 @@ namespace Tgstation.Server.Api
|
||||
/// <param name="password">The value of <see cref="Password"/></param>
|
||||
ApiHeaders(ProductHeaderValue userAgent, string token, string username, string password)
|
||||
{
|
||||
RawUserAgent = userAgent.ToString();
|
||||
RawUserAgent = userAgent?.ToString();
|
||||
Token = token;
|
||||
Username = username;
|
||||
Password = password;
|
||||
|
||||
Reference in New Issue
Block a user