Browse Source

fix #3372 empty tree for assembly

pull/3373/head
Trivalik 1 year ago
parent
commit
9f6f1ee96e
  1. 3
      ICSharpCode.ILSpyX/LoadedAssembly.cs

3
ICSharpCode.ILSpyX/LoadedAssembly.cs

@ -353,7 +353,7 @@ namespace ICSharpCode.ILSpyX
} }
} }
if (result?.IsSuccess != true) if (result?.IsSuccess != true || result.Package?.Kind == LoadedPackage.PackageKind.Zip) // workaround to check this before zip
{ {
stream.Position = 0; stream.Position = 0;
try try
@ -367,6 +367,7 @@ namespace ICSharpCode.ILSpyX
} }
catch (Exception ex) catch (Exception ex)
{ {
if (result == null)
result = new LoadResult { FileLoadException = ex }; result = new LoadResult { FileLoadException = ex };
} }
} }

Loading…
Cancel
Save