I’m creating a class inside a GhPython component that stores geometries and text data in a dictionary.
If I output the geometries inside the same GhPython component everything works as expected but when I output the object I get a NullReferenceException: No problem for text data instead.
It’s kind of hard to say without a file to take a look at, but have you tried not using the output variable a to store your class instance? I’d try to store it inside a separate variable and pass it to the output at the end of the script.
Also, what have you set the type hint for the x-input of the second GHPython component to?
Data transfers between components can also be done via sticky, but your current workflow should be fine too. The devil is in the details! If you’re interested in sticky, simply search the discussion forum. It has been explained over and over.
I’ve checked your file and fortunately there is a very easy remedy for your problem! Just set the type hint for your geometries input of the first GHPython component to Mesh, instead of ghdoc Object when ....
The problem seems to be that when using GUIDs, they expire or get dissociated somewhere along the way. I don’t understand exactly what happens here either… but explicitly working with meshes is a quick fix!