I´ve been struggling with this error for a while…
I get an “object reference not set to an instance of an object” when creating a custom class in ghpython, editing the attributes of the class via a slider, and passing the class instance to other components.
The first time it runs OK, but when changing the value of the slider the error appears, only to disappear again if clicking on recompute.
It seems OK to modify the attribute in the same component where its instance is initialised, but when the instance is passed around between other components, something goes wrong. What is it?
Can somebody please help me work around this issue?
I managed to replicate the error in a small gh file
nullobjecterror.gh (10.4 KB)