Model Object with empty Object input outputs a <Null>

One thing that is frequently messing with my data structures is the Model Object output. Since I am only recomputing those objects that changed (offsets of curves and surfaces that I build from the offsets), I may get to situations where when I only delete an input curve for the script, the Model Object Input for new objects is empty. In that case, it outputs a <Null>, which changes the data structure later when merging the various data streams together (new objects, modified objects and objects to preserve).

So my question here is, shoudn’t the output for the Model Object be empty instead?
E: It’s not like the <Null> output contains any useful data either.

1 Like

It should actually be empty, it is empty elsewhere in the file and when I place a new Model Object Component, it is also empty. Not sure how it got to this point. I have seen this happen quite a few times in the past and now on version 8 SR25 (8.25.25287.14001, 2025-10-14).

Hi Intous,

I’ve assigned this to Kike to see if he can help.

In C# there is a difference between Null and Empty.

Null has no memory allocation for the object; empty has an allocated object with no content.

Empty

  • Represents an object that exists but contains no data

Null

  • Represents the absence of an object or reference
1 Like

Hi @Intuos,

Could you share the data structure you have here.

Sharing the file with internalized data would help also.

Hi @kike,
How would you like me to internalise the Model Objects? It’s something I haven’t quite figured out how to do best for trouble shooting purposes.

In this case just knowing the data structure you have as input will be enough.

I can recreate the case with just this information.

It disappears on undoing, but that wasn’t the case before this version.
I’ve removed any non-necessary components (can’t internalise any model objects or model layers). So in certain situations there are no objects to recompute (to update) and then I have empty inputs going in like in this sample.

Null object in Model Object.gh (39.7 KB)

Hi @Intuos

A fix for the Model Object with empty Object input outputs a : RH-90230 issue will be released on next Rhino release.

Thanks for reporting!

2 Likes