From 32394b093b7d967b324b16cfc8956f8b6e59dcd1 Mon Sep 17 00:00:00 2001 From: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com> Date: Tue, 11 Jun 2024 02:18:56 -0700 Subject: [PATCH] Fix Null Being Taken Literally, Crashing Debug on Login (#440) There's probably an upcoming mirror for this, but whatever. --- Content.Server/Administration/Managers/AdminManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Administration/Managers/AdminManager.cs b/Content.Server/Administration/Managers/AdminManager.cs index b1cca46e63f..57d6e089bd4 100644 --- a/Content.Server/Administration/Managers/AdminManager.cs +++ b/Content.Server/Administration/Managers/AdminManager.cs @@ -315,7 +315,7 @@ private async void LoginAdminMaybe(ICommonSession session) _admins.Add(session, reg); - if (!session.ContentData()!.ExplicitlyDeadminned) + if (!session.ContentData()?.ExplicitlyDeadminned ?? false) { reg.Data.Active = true;