Fix potential NRE with SteamTarget

This commit is contained in:
JustArchi
2019-02-18 03:40:07 +01:00
parent 27c972ed93
commit b5c7fb3b76

View File

@@ -60,7 +60,7 @@ namespace ArchiSteamFarm.NLog {
base.Write(logEvent);
if (SteamID == 0) {
if ((SteamID == 0) || (Bot.Bots == null) || (Bot.Bots.Count == 0)) {
return;
}