Skip to content

Commit

Permalink
Merge pull request #3280 from Applesauce314/patch-1
Browse files Browse the repository at this point in the history
Fix Derived Types Node always being empty
  • Loading branch information
siegfriedpammer committed Sep 20, 2024
2 parents 58e993d + 2ea500c commit 5e7e677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ILSpy/TreeNodes/DerivedTypesTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ internal static IEnumerable<DerivedTypesEntryNode> FindDerivedTypes(AssemblyList
continue;
var metadata = module.Metadata;
var assembly = module.GetTypeSystemOrNull()?.MainModule as MetadataModule;
if (assembly != null)
if (assembly == null)
continue;
foreach (var h in metadata.TypeDefinitions)
{
Expand Down Expand Up @@ -107,4 +107,4 @@ public override void Decompile(Language language, ITextOutput output, Decompilat
threading.Decompile(language, output, options, EnsureLazyChildren);
}
}
}
}

0 comments on commit 5e7e677

Please sign in to comment.