[RhinoCommon] UserData must be defined in a plug-in assembly - NullReferenceException otherwise


(Menno Deij - van Rijswijk) #1

I have a plug-in that loads a file resulting in a Mesh. To this I want to add a UserData definition. I have found that when the class definition of the UserData is not in a plug-in assembly, that I get a NullReferenceException:

   at Rhino.DocObjects.Custom.UserData.NonConstPointer(Boolean createIfMissing)
   at Rhino.DocObjects.Custom.UserDataList.Add(UserData userdata)
<snip my code>

It would be nice if this restriction could be lifted somehow.


Add UserData: Object Reference not set to the instance of an object
(Steve Baer) #2

Yep, I don’t know quite how I would do this, but the bug is in the system at
http://mcneel.myjetbrains.com/youtrack/issue/RH-23446


(Menno Deij - van Rijswijk) #3

Ok, thanks.