Hello All,
I'm facing a weird issue. I have a solution that print multiple reports when a button is clicked.
However, looks like d365 cannot find some menu items and throw an error saying "Object reference not set to an instance of an object."
I traced the code and I found where the problem is but I can't see why I'm getting this error.
The treeNode on the image below somehow is returning null for some menu items, but the weird thing is that if I run the same code with the same menu items in a runnable class it works normally.
Anyone has any ideas of what might be happening?
Thanks,