Current filter:
                                You should refresh the page.
                                  • [DevExpress Support Team: CLONED FROM T497988: DeclareProvider throws null reference exception]
                                    Hi,
                                    I am so sorry, but started getting this error again with CR for Roslyn v16.2.7

                                    Here is the exception.

                                    [VB.NET]
                                    System.NullReferenceException : Object reference not set to an instance of an object. at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.ElementDeclarator.GetExpressionTypeSyntax(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.ElementDeclarator.ArgumentToParameter(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.ElementDeclarator.GetParameterListFromArguments(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.ElementDeclarator.GetParametersFromArguments(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.MethodDeclarator.RegisterForMethodReference(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.MethodDeclarator.RegisterNodeDeclarations(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.MemberDeclarator.GetNodeReplacements(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.ElementDeclarator.Execute(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.DeclareMemberRefactoring.Execute(<Unknown Parameters>) at async DevExpress.CodeAnalysis.VisualBasic.CodeDeclare.DeclareRefactoring.ApplyChangeManager(<Unknown Parameters>) at async DevExpress.CodeAnalysis.TargetPicker.TargetPickerRegistrator.DoRegistration(<Unknown Parameters>) at async DevExpress.CodeAnalysis.TargetPicker.TargetPickerRefactoringProvider.DoRefactoringRegistration(<Unknown Parameters>) at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.RegisterRefactoring(<Unknown Parameters>) at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>) at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
                                • Eugene R (DevExpress) 04.06.2017

                                  Hi Edhy,

                                  Thank you for contacting us and sending the call stack.
                                  We can add an additional check to prevent NullReferenceException, but it is better to find a scenario when the exception happens and make more intelligent correction.
                                  Would you please provide the code example where the exception is raised? It would be of great help if you prepare a simple test project illustrating the problem.

                                • Edhy Rijo 04.06.2017

                                  Hi Eugene,
                                  I don't get the error as frequent as before so it may take some time until I can post more details.

                                • Eugene R (DevExpress) 04.07.2017

                                  Hi Edhy,

                                  We will add an additional check now and let you know when changes are ready.
                                  We kindly ask you to provide as more exact steps as possible to use if you face this exception again. A simple code sample would be also really helpful.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: