fix issue that shouldn't actually be an issue

This commit is contained in:
RaidMax 2022-06-12 15:09:26 -05:00
parent 49fe4520ff
commit ef3db63ba7

View File

@ -80,7 +80,7 @@ namespace SharedLibraryCore.Database.Models
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;