diff --git a/ArchiSteamFarm/ASF.cs b/ArchiSteamFarm/ASF.cs index fe4547f4c..7eb96edee 100644 --- a/ArchiSteamFarm/ASF.cs +++ b/ArchiSteamFarm/ASF.cs @@ -37,6 +37,11 @@ namespace ArchiSteamFarm { internal static async Task CheckForUpdate(bool updateOverride = false) { string exeFile = Assembly.GetEntryAssembly().Location; + if (string.IsNullOrEmpty(exeFile)) { + Logging.LogNullError(nameof(exeFile)); + return; + } + string oldExeFile = exeFile + ".old"; // We booted successfully so we can now remove old exe file