Fix a NullReferenceException that should be an ArgumentNullException

This commit is contained in:
Jordan Brown
2019-01-11 15:11:25 -05:00
parent d1a45281d7
commit 0ec3f2ed4d
+1 -1
View File
@@ -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;