Fixed profile creation issue

This commit is contained in:
Chomp
2025-07-15 17:19:47 +01:00
parent 88e6db3342
commit e42e53e492
@@ -241,7 +241,7 @@ public class BotGeneratorHelper(
/// <returns>Equipment filter settings</returns>
protected EquipmentFilters? GetBotEquipmentSettingFromConfig(string botRole)
{
return _botConfig.Equipment.GetValueOrDefault(GetBotEquipmentRole(botRole));
return _botConfig.Equipment?.GetValueOrDefault(GetBotEquipmentRole(botRole));
}
/// <summary>