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 @@ -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;
try
@ -367,6 +367,7 @@ namespace ICSharpCode.ILSpyX @@ -367,6 +367,7 @@ namespace ICSharpCode.ILSpyX
}
catch (Exception ex)
{
if (result == null)
result = new LoadResult { FileLoadException = ex };
}
}

Loading…
Cancel
Save