Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Rhino Converter throws an error when unnamed collections are filtered #3291

Open
secretlyagoblin opened this issue Apr 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@secretlyagoblin
Copy link
Contributor

case Collection c when !c.collectionType.ToLower().Contains("model"):

If the collectionType is null in this case it silently throws and nothing in the collection loads, showing a successful pull.

should be

      case Collection c when ! (c.collectionType?.ToLower().Contains("model") ?? false):
@secretlyagoblin secretlyagoblin added the bug Something isn't working label Apr 19, 2024
@secretlyagoblin secretlyagoblin changed the title Bug: Rhino Converter throw an error when unnamed collections are filtered Bug: Rhino Converter throws an error when unnamed collections are filtered Apr 19, 2024
@AlanRynne
Copy link
Member

Hi @secretlyagoblin, thx for reporting this!

Where is the commit you're trying to receive from? (Revit, Rhino...). Could you share it with us so we could have a look?

I don't recall us changing any logic here, but I'd need to check the history to confirm.

@secretlyagoblin
Copy link
Contributor Author

We're making our own commits via custom code, but when creating collections, collectionType defaults to null, not "". So as a result, our custom collections are causing the converter to crash.

The fix is for us to explicitly set collectionType to "" instead of null, but either way, there should be a null check here if collectionType is to remain nullable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants