From 2ea500cfbd0561fbafcfb52e2b547761fb6af466 Mon Sep 17 00:00:00 2001 From: Andrew Moskevitz <49752377+Applesauce314@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:59:39 -0400 Subject: [PATCH] Update DerivedTypesTreeNode with == null instead of != null. it appears Fix #3263 added an accidental `!=` instead of `==` and broke the derived types node. --- ILSpy/TreeNodes/DerivedTypesTreeNode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ILSpy/TreeNodes/DerivedTypesTreeNode.cs b/ILSpy/TreeNodes/DerivedTypesTreeNode.cs index d3fd992683..760685dc9a 100644 --- a/ILSpy/TreeNodes/DerivedTypesTreeNode.cs +++ b/ILSpy/TreeNodes/DerivedTypesTreeNode.cs @@ -73,7 +73,7 @@ internal static IEnumerable 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) { @@ -107,4 +107,4 @@ public override void Decompile(Language language, ITextOutput output, Decompilat threading.Decompile(language, output, options, EnsureLazyChildren); } } -} \ No newline at end of file +}