diff --git a/SharedLibraryCore/PartialEntities/EFClient.cs b/SharedLibraryCore/PartialEntities/EFClient.cs index 01ba29822..b4bae5ac9 100644 --- a/SharedLibraryCore/PartialEntities/EFClient.cs +++ b/SharedLibraryCore/PartialEntities/EFClient.cs @@ -80,7 +80,7 @@ public virtual int? IPAddress set => CurrentAlias.IPAddress = value; } - [NotMapped] public string IPAddressString => IPAddress.ConvertIPtoString(); + [NotMapped] public string IPAddressString => IPAddress is null ? null : IPAddress.ConvertIPtoString(); [NotMapped] public bool IsIngame => ClientNumber >= 0;