diff --git a/src/NetEvolve.ArchiDuct/Internals/Decompiler.cs b/src/NetEvolve.ArchiDuct/Internals/Decompiler.cs index be7e35b4..4349fc84 100644 --- a/src/NetEvolve.ArchiDuct/Internals/Decompiler.cs +++ b/src/NetEvolve.ArchiDuct/Internals/Decompiler.cs @@ -172,6 +172,12 @@ private static bool TryGetDocumentationProvider( [NotNullWhen(true)] out IDocumentationProvider? documentationProvider ) { + if (module?.PEFile is null) + { + documentationProvider = null; + return false; + } + documentationProvider = _documentationProviders.GetOrAdd( module, m =>