diff --git a/Libraries/SPTarkov.Server.Core/Servers/SaveServer.cs b/Libraries/SPTarkov.Server.Core/Servers/SaveServer.cs index 4d0661b7..9d193211 100644 --- a/Libraries/SPTarkov.Server.Core/Servers/SaveServer.cs +++ b/Libraries/SPTarkov.Server.Core/Servers/SaveServer.cs @@ -295,8 +295,9 @@ public class SaveServer( public bool IsProfileInvalidOrUnloadable(MongoId sessionID) { if ( - profiles[sessionID].ProfileInfo!.InvalidOrUnloadableProfile is not null - && profiles[sessionID].ProfileInfo!.InvalidOrUnloadableProfile!.Value + profiles.TryGetValue(sessionID, out var profile) + && profile.ProfileInfo!.InvalidOrUnloadableProfile is not null + && profile.ProfileInfo!.InvalidOrUnloadableProfile!.Value ) { return true;