Object reference not set to an instance of an object in Conduit

Hi, I am a new user to Conduit plugin for grasshopper and I suddenly ran into a problem with a error message “Object reference not set to an instance of an object” as soon as I try to feed in the tile or category in chart. I have enclosed my file here.conduit_tutorial.gh (13.0 KB)

@menno Is there any insight on this ?

1 Like

Exactly the same issue here on Rhino 5 / GH 0.9.0076

I also have this problem. Running Rhino 6 and GH 1.0.0007

Connecting a conduit font component will fix this.

6 Likes

An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message “object reference not set to an instance of an object” means that you are referring to an object the does not exist or was deleted or cleaned up. It’s usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested before being used.

if (mClass != null)
{
  // Go ahead and use mClass
  mClass.property = ...
}
else
{
  // Attempting to use mClass here will result in NullReferenceException
}