Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pshao25 committed Aug 15, 2023
1 parent 886a5ca commit d831c73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public override void AnalyzeCore(ISymbolAnalysisContext context)
foreach (var member in type.GetMembers())
{
var methodSymbol = member as IMethodSymbol;
if (methodSymbol.DeclaredAccessibility != Accessibility.Public)
if (methodSymbol == null || methodSymbol.DeclaredAccessibility != Accessibility.Public)
{
continue;
}
Expand Down

0 comments on commit d831c73

Please sign in to comment.