Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram.DiagramItem.Parent randomly null (Read 1376 times)
tjugg
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 20th, 2017
Diagram.DiagramItem.Parent randomly null
Oct 20th, 2017 at 9:27am
Print Post  
Hi,

Sometimes, when trying to fetch the parent of a DiagramItem,
it randomly (works 99% of the time) is null. What could be causing this / is this a known issue?

Regards,
t
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Diagram.DiagramItem.Parent randomly null
Reply #1 - Oct 20th, 2017 at 9:47am
Print Post  
Hi,

Something like this could happen if you use groups, if you attach a subordinate node to master node but do not add the subordinate to diagram.Items, and then access through master.SubordinateGroup.Nodes[XX].Parent. If not using groups, maybe check if there isn't a reference to deleted item stored somewhere.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint