Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
UltraWinTree dll - Null Exception
posted

We are getting a null reference exception from the Infragistics4.Win.UltraWinTree assembly. This is after we remove the node we get the following error. Any help would be appreciated. 

System.NullReferenceException: Object reference not set to an instance of an object.
at Infragistics.Win.UltraWinTree.UltraTreeNode.NodeUiaProviderStub.GetParent()
at Infragistics.Win.UIAutomation.Stubs.FragmentUIAProviderStub.GetParentStub()
at Infragistics.Win.UIAutomation.Stubs.FragmentUIAProviderStub.GetAutomationId()
at Infragistics.Win.UltraWinTree.UltraTreeNode.VerifyNodeUiaProviderStub()
at Infragistics.Win.UltraWinTree.UltraTreeNode.GetUiaProviderStub(Boolean createIfNeeded)
at Infragistics.Win.UltraWinTree.UltraTreeNode.GetUiaProviderStub()
at Infragistics.Win.UltraWinTree.NodeCheckBoxUIElement.DoClick()
at Infragistics.Win.UltraWinTree.NodeCheckBoxUIElement.OnClick()
at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Parents
  • 18204
    Suggested Answer
    Offline posted

    Hello,

    Thank you for posting in our forums!

    If you are not using CodedUI, you can disable the UIAutomation support with the following code.

    Infragistics.Win.UltraControlBase.UIAutomationForCodedUITestingEnabled = false;

    This should bypass the exception that is happening.  If you still need the UIA support, please let me know which version and build of Infragistics you are using. e.g. 18.2.20182.175

    If you need anything else, please let me know and I will be glad to help.

Reply Children