Fix remaining crash

This commit is contained in:
JustArchi
2016-03-11 21:40:25 +01:00
parent 601a486b13
commit eb4e9ee077

View File

@@ -454,7 +454,7 @@ namespace ArchiSteamFarm {
}
Bot bot = new Bot(botName);
if (!bot.BotConfig.Enabled) {
if (bot.BotConfig == null || !bot.BotConfig.Enabled) {
Logging.LogGenericInfo("Not starting this instance because it's disabled in config file", botName);
}
}