Skip to content

Commit

Permalink
Fix Null Being Taken Literally, Crashing Debug on Login (#440)
Browse files Browse the repository at this point in the history
There's probably an upcoming mirror for this, but whatever.
  • Loading branch information
DEATHB4DEFEAT committed Jun 11, 2024
1 parent 00381a4 commit 32394b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Administration/Managers/AdminManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 32394b0

Please sign in to comment.