Skip to content

Commit

Permalink
fix null being taken literally
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Jun 11, 2024
1 parent 9de58f9 commit 180cf05
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 180cf05

Please sign in to comment.