Skip to content

Commit

Permalink
Parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Sep 23, 2024
1 parent e734990 commit 27e266f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<AssemblyArchitectureType>(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]),

Expand Down

0 comments on commit 27e266f

Please sign in to comment.