We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Unhandled Exception when setting the Nodes Collection

Thread ID:

Created:

Updated:

Platform:

Replies:

120921 Oct 27,2015 06:14 PM Nov 4,2015 11:43 PM WinRT 4
loading
Tags: SfDiagram
Stergios
Asked On October 27, 2015 06:14 PM

Hello,

I'm trying to use the SfDiagram control by creating a hierarchical collection of nodes (represented by their viewmodel) and setting the Nodes property. The issue is that when I call

ObservableCollection<IsolationStep> isolationSteps = (ObservableCollection<IsolationStep>)e.NavigationParameter;

diagram.Nodes = isolationSteps;

I get:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.GetLastChild(INode parent)
   at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.AdjacentRight(IInternalNode shape)
   at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.AllocateSpace(IInternalNode v, IInternalNode a, IInternalNode parent, IInternalNode prev, IInternalNode next)
   at Syncfusion.UI.Xaml.Diagram.Layout.DirectedTreeLayout.DoFirstWalk(IIn

Can you please provide with some guidance on what should be wrong regarding the Nodes collection that I'm using?

Thank you in advance.

Ranjitha Amirthalingam [Syncfusion]
Replied On October 28, 2015 06:23 AM

Hi Stergios,

Thanks for contacting Syncfusion Support.

Reported Scenario: Issue with Null Reference Exception.

We have analyzed the provided stack trace. We have suspect that the Info property of Node returns null value, which causes “Null Reference Exception”.

It would be better for us, if you would provide the sample to represent the reported scenario. This helps us to serve you better.


Regards,
Ranjitha A.

Stergios
Replied On November 1, 2015 03:10 AM

Hello,

I have attached a sample app that generated the problem.

Regards

Attachment: App1_e5ece0a5.zip

Ranjitha Amirthalingam [Syncfusion]
Replied On November 2, 2015 08:09 PM

Hi Stergios,

Reported Issue:Issue with Null Reference Exception.

Layout defines the relationship between Parent and Child Nodes. LineConnector  is used to create the relationship between Parent and Child Nodes. After analyzing your sample ,we came to know that Connector Collection is not created which causes the reported issue.


Regards,
Ranjitha A.

Ranjitha Amirthalingam [Syncfusion]
Replied On November 4, 2015 11:43 PM

Hi Stergios,


We considered this “Null reference exception with Connector Collection” as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.


https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents



Regards,
Ranjitha A.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;