diff --git a/ILSpy/Analyzers/AnalyzerScope.cs b/ILSpy/Analyzers/AnalyzerScope.cs index f0f927dc0..4289b1810 100644 --- a/ILSpy/Analyzers/AnalyzerScope.cs +++ b/ILSpy/Analyzers/AnalyzerScope.cs @@ -77,7 +77,8 @@ namespace ICSharpCode.ILSpy.Analyzers public IEnumerable GetAllModules() { return AssemblyList.GetAllAssemblies().GetAwaiter().GetResult() - .Select(asm => asm.GetPEFileOrNull()); + .Select(asm => asm.GetPEFileOrNull()) + .Where(x => x != null); } public IEnumerable GetTypesInScope(CancellationToken ct)