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
1052
Null Reference when Drilling Down
posted

Hi There,

I am using a tree map to show some hierarchical data, which you can drill down with. I'm getting a strange bug when drilling down to some of my nodes where the error message shows Object not set to a reference...

I had a brief look at the code and it seems to be when the TreemapNodeInfo if trying to find the LastParentNode.

When I am drilling down, I set a flag on my object before I set that object as the ItemSourceRoot, and this seems to contribute to the error. If I don't set this flag then the error doesn't seem to occur.

I have created a simple demo of this behavior which is attached. If you drill down (click) on most of the nodes it is fine, however if the first node you click on is M the error occurs, it also happens sometimes if you drill down on M twice.

Any help on this problem would be greatly appreciated.

TreeMap.zip