diff --git a/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs index bf1173d2..8a82a753 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs @@ -566,10 +566,14 @@ public class ProfileHelper( public void AddStashRowsBonusToProfile(string sessionId, int rowsToAdd) { var profile = GetPmcProfile(sessionId); - var existingBonus = profile?.Bonuses?.FirstOrDefault(b => b.Type == BonusType.StashRows); - if (existingBonus != null) + if (profile?.Bonuses is null) { - profile?.Bonuses?.Add( + return; + } + var existingBonus = profile?.Bonuses.FirstOrDefault(b => b.Type == BonusType.StashRows); + if (existingBonus is null) + { + profile!.Bonuses.Add( new Bonus { Id = _hashUtil.Generate(),