StefanMaron / BusinessCentral.LinterCop

Community driven code linter for AL (MS Dynamics 365 Business Central)
https://stefanmaron.com
MIT License
76 stars 31 forks source link

Rule0068CheckObjectPermission: NullReferenceException #745

Closed Arthurvdv closed 2 months ago

Arthurvdv commented 2 months ago
Analyzer 'BusinessCentral.LinterCop.Design.Rule0068CheckObjectPermission' threw an exception of type 'System.NullReferenceException' with message 'System.NullReferenceException: Object reference not set to an instance of an object.
   at BusinessCentral.LinterCop.Design.Rule0068CheckObjectPermission.CheckProcedureInvocation(IPropertySymbol objectPermissions, ITypeSymbol variableType, Char requestedPermission, Action`1 ReportDiagnostic, Location location, ITableTypeSymbol targetTable)
   at BusinessCentral.LinterCop.Design.Rule0068CheckObjectPermission.CheckObjectPermission(OperationAnalysisContext ctx)
   at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass54_1.<ExecuteOperationAction>b__1() in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 773
   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'`