Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Expand Object component doesn't skip null inputs in a list #312

Open
1 task done
daviddekoning opened this issue Jul 6, 2020 · 0 comments
Open
1 task done

Expand Object component doesn't skip null inputs in a list #312

daviddekoning opened this issue Jul 6, 2020 · 0 comments

Comments

@daviddekoning
Copy link
Contributor

Step 0:

Expected Behaviour

When the input list of SpeckleObjects contains some null values, there should still be output corresponding to the valid inputs.

Actual Behaviour

If a list of SpeckleObjects is passed in, and some of them are null, the whole component fails and produces no output (note that the component runs once the null values are filtered out):

image

Affected Projects

This is a GH specific issue.

Reproduction Steps & System Config (win, osx, web, etc.)

This is occuring on Windows 10, with Rhino 6 and Speckle-v1.8.24.320.

Proposed Solution (if any)

A null check here will likely be a good starting point:

object FO = obj.GetType().GetProperty( "Value" ).GetValue( obj, null );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant