-
-
Notifications
You must be signed in to change notification settings - Fork 275
Closed
Labels
Description
Warning (active) AD0001 Analyzer 'Roslynator.CSharp.Analysis.InvocationExpressionAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'.
Exception occurred with following context:
Compilation: Solution
SyntaxTree: C:\Workspace\Solution\TestLibrary.cs
SyntaxNode: LazyAppTemplateList .Where(x => ... [InvocationExpressionSyntax]@[9311..9471) (169,74)-(171,62)
System.NullReferenceException: Object reference not set to an instance of an object.
at Roslynator.CSharp.Analysis.OptimizeLinqMethodCallAnalysis.AnalyzeOrderByIdentity(SyntaxNodeAnalysisContext context, SimpleMemberInvocationExpressionInfo& invocationInfo)
at Roslynator.CSharp.Analysis.InvocationExpressionAnalyzer.AnalyzeInvocationExpression(SyntaxNodeAnalysisContext context)
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken)