Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

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

Open

Description

@secretlyagoblin

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):

Activity

  1. 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[/+] on Apr 19, 2024
  2. AlanRynne commented on May 15, 2024

    @AlanRynne
    Contributor

    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.

  3. secretlyagoblin commented on May 21, 2024

    @secretlyagoblin
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions