This commit is contained in:
hydrant
2019-07-27 22:51:27 +02:00
parent dfeee7d7e9
commit a511b09cdf
2 changed files with 4 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ namespace ReallifeGamemode.Server.Wanted
foreach (var player in NAPI.Pools.GetAllPlayers())
{
User user = player.GetUser();
if (Jailtime.ContainsKey(user.Id))
if (user != null && Jailtime.ContainsKey(user.Id))
{
if (user.JailTime <= 0)