Skip to content

Commit

Permalink
fix: NullReferenceException in TryGetDocumentationProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Jun 17, 2024
1 parent 20229cf commit 13dd91e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/NetEvolve.ArchiDuct/Internals/Decompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down

0 comments on commit 13dd91e

Please sign in to comment.