diff --git a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs index 4921aeb..66e9a7a 100644 --- a/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs +++ b/src/BUTR.CrashReport.Bannerlord.Source/CrashReportCreatorHelper.cs @@ -184,7 +184,7 @@ public virtual AssemblyModelType GetAssemblyType(AssemblyModelType type, CrashRe { static bool IsTWCore(Assembly assembly) { - if (assembly.IsDynamic) + if (assembly.IsDynamic || string.IsNullOrEmpty(assembly.Location)) return false; var binFolder = Path.GetDirectoryName(assembly.Location); if (!string.Equals(binFolder, "bin", StringComparison.OrdinalIgnoreCase))