mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Fix nullref in SystemConsoleShouldBeAvoidedAnalyzer
This commit is contained in:
@@ -22,6 +22,9 @@ namespace CliFx.Analyzers
|
||||
PropertyDeclarationSyntax propertyDeclaration,
|
||||
IPropertySymbol property)
|
||||
{
|
||||
if (property.ContainingType is null)
|
||||
return;
|
||||
|
||||
if (property.ContainingType.IsAbstract)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user