string > mongoid

added nullguard
This commit is contained in:
Chomp
2025-07-25 21:12:37 +01:00
parent 68c89fcc00
commit 526c3f6c44
7 changed files with 26 additions and 11 deletions
@@ -5,6 +5,7 @@ using SPTarkov.Server.Core.Models.Common;
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
using SPTarkov.Server.Core.Models.Enums;
using SPTarkov.Server.Core.Models.Utils;
using SPTarkov.Server.Core.Utils;
namespace SPTarkov.Server.Core.Services;
@@ -12,6 +13,7 @@ namespace SPTarkov.Server.Core.Services;
public class BotEquipmentModPoolService(
ISptLogger<BotEquipmentModPoolService> logger,
ItemHelper itemHelper,
JsonUtil jsonUtil,
DatabaseService databaseService,
ServerLocalisationService localisationService
)
@@ -261,7 +263,11 @@ public class BotEquipmentModPoolService(
&& itemHelper.IsOfBaseclasses(item.Id, [BaseClasses.WEAPON, BaseClasses.MOD])
);
return GeneratePool(weaponsAndMods, "weapon");
var x = GeneratePool(weaponsAndMods, "weapon");
logger.Warning(jsonUtil.Serialize(x));
return x;
}
/// <summary>