This commit is contained in:
hydrant
2020-04-19 21:49:49 +02:00
parent 65a83ed9f0
commit 3f748c7520

View File

@@ -116,7 +116,7 @@ namespace ReallifeGamemode.Database.Entities
[NotMapped]
public Player Player
{
get => NAPI.Pools.GetAllPlayers().Where(c => c.Name.ToLower() == this.Name.ToLower()).FirstOrDefault();
get => NAPI.Pools.GetAllPlayers()?.Where(c => c?.Name?.ToLower() == this?.Name?.ToLower()).FirstOrDefault();
}
[NotMapped]