From 27e266fb4c719567f77ddd384be47d032510f929 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Mon, 23 Sep 2024 11:31:10 +0300 Subject: [PATCH] Parsing fix --- src/BUTR.CrashReport.Bannerlord.Parser/CrashReportParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BUTR.CrashReport.Bannerlord.Parser/CrashReportParser.cs b/src/BUTR.CrashReport.Bannerlord.Parser/CrashReportParser.cs index a13f7e7..a0a4051 100644 --- a/src/BUTR.CrashReport.Bannerlord.Parser/CrashReportParser.cs +++ b/src/BUTR.CrashReport.Bannerlord.Parser/CrashReportParser.cs @@ -486,7 +486,7 @@ private static AssemblyModel ParseAssembly(HtmlNode node, ModuleModel[] modules) ModuleId = module?.Id, LoaderPluginId = null, CultureName = null, - Architecture = (AssemblyArchitectureType) Enum.Parse(typeof(AssemblyArchitectureType), splt[2], true), + Architecture = Enum.TryParse(splt[2], true, out var arch) ? arch : AssemblyArchitectureType.Unknown, Hash = isDynamic || isEmpty ? string.Empty : splt[3], AnonymizedPath = isDynamic ? "DYNAMIC" : isEmpty ? "EMPTY" : Anonymizer.AnonymizePath(splt[4]),