From b0b349ca3af01723362e8906f2f1c6f088f4879e Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Wed, 17 Jan 2024 11:33:26 +0100 Subject: [PATCH] fix nullref --- .../Authentication/SecretKeyAuthenticatorService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs b/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs index 858b546..f090294 100644 --- a/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs +++ b/MareSynchronosServer/MareSynchronosServer/Authentication/SecretKeyAuthenticatorService.cs @@ -60,7 +60,7 @@ public class SecretKeyAuthenticatorService } SecretKeyAuthReply reply = new(authReply != null, authReply?.UserUID, - authReply?.PrimaryUserUID ?? authReply?.UserUID, authReply.User.Alias ?? string.Empty, TempBan: false, isBanned); + authReply?.PrimaryUserUID ?? authReply?.UserUID, authReply?.User?.Alias ?? string.Empty, TempBan: false, isBanned); if (reply.Success) {