From df3e226dc90963bd2a5b25eb40f7ace18027d8a1 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 12 Jun 2022 16:37:07 -0500 Subject: [PATCH] actually fix the previous issue --- SharedLibraryCore/PartialEntities/EFClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SharedLibraryCore/PartialEntities/EFClient.cs b/SharedLibraryCore/PartialEntities/EFClient.cs index b4bae5ac9..b52e56789 100644 --- a/SharedLibraryCore/PartialEntities/EFClient.cs +++ b/SharedLibraryCore/PartialEntities/EFClient.cs @@ -76,11 +76,11 @@ namespace SharedLibraryCore.Database.Models [NotMapped] public virtual int? IPAddress { - get => CurrentAlias.IPAddress; + get => CurrentAlias?.IPAddress; set => CurrentAlias.IPAddress = value; } - [NotMapped] public string IPAddressString => IPAddress is null ? null : IPAddress.ConvertIPtoString(); + [NotMapped] public string IPAddressString => IPAddress.ConvertIPtoString(); [NotMapped] public bool IsIngame => ClientNumber >= 0;