mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Fix potential NRE with SteamTarget
This commit is contained in:
@@ -60,7 +60,7 @@ namespace ArchiSteamFarm.NLog {
|
||||
|
||||
base.Write(logEvent);
|
||||
|
||||
if (SteamID == 0) {
|
||||
if ((SteamID == 0) || (Bot.Bots == null) || (Bot.Bots.Count == 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user