Skip to content

ALCops.ApplicationCop.Analyzers.CaptionRequired - System.NullReferenceException error #365

Description

@SKeiler

We get in 2 repos the following error (both in app.json)

[{
"resource": "XXX/app.json",
"owner": "generated_diagnostic_collection_name#2",
"code": "AD0001",
"severity": 4,
"message": "Analyzer 'ALCops.ApplicationCop.Analyzers.CaptionRequired' threw an exception of type 'System.NullReferenceException' with message 'System.NullReferenceException: Object reference not set to an instance of an object.\r\n at ALCops.Common.Extensions.SymbolInterfaceExtensions.IsObsolete(ISymbol symbol)\r\n at ALCops.Common.Extensions.AnalysisContextExtensions.IsObsolete(SymbolAnalysisContext context)\r\n at ALCops.ApplicationCop.Analyzers.CaptionRequired.CheckForMissingCaptions(SymbolAnalysisContext context)\r\n at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass50_2.b__0() in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 665\r\n at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info) in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1088'",
"source": "AL",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1,
"origin": "extHost1"
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigateFurther analysis required before the issue can be classified or resolved

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions