diff --git a/ILSpy/Analyzers/Builtin/MemberImplementsInterfaceAnalyzer.cs b/ILSpy/Analyzers/Builtin/MemberImplementsInterfaceAnalyzer.cs index b1e1e8aefd..d4c87ced58 100644 --- a/ILSpy/Analyzers/Builtin/MemberImplementsInterfaceAnalyzer.cs +++ b/ILSpy/Analyzers/Builtin/MemberImplementsInterfaceAnalyzer.cs @@ -51,7 +51,7 @@ public bool Show(ISymbol symbol) case SymbolKind.Property: var member = (IMember)symbol; var type = member.DeclaringTypeDefinition; - return !member.IsStatic && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct); + return !member.IsStatic && type is not null && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct); default: return false;