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

Null check for familyLibrary in CategoryNames query method #388

Merged

Conversation

pawelbaran
Copy link
Member

Issues addressed by this PR

Closes #387

Null catch to prevent the code from crashing - instead an informative error is returned.

Test files

Test file located here.

Changelog

Informative error given when requested family type does not exist in the Revit document.

Additional comments

@pawelbaran pawelbaran added size:S Measured in minutes type:bug Error or unexpected behaviour labels Oct 3, 2019
@pawelbaran pawelbaran added this to the BHoM 3.0 β MVP milestone Oct 3, 2019
@pawelbaran pawelbaran self-assigned this Oct 3, 2019
@ZiolkowskiJakub
Copy link
Member

Hi @FraserGreenroyd,

Anything to add on this one? Shall I merge it?

Thanks in advance.

@FraserGreenroyd
Copy link
Contributor

Hi no problems from me, I had a query but it was resolved, happy for you to merge 😄

@ZiolkowskiJakub ZiolkowskiJakub merged commit e5bfd31 into master Oct 14, 2019
@ZiolkowskiJakub ZiolkowskiJakub deleted the Revit_Toolkit-Issue387-CategoryNamesCrashOnNull branch October 14, 2019 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S Measured in minutes type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revit_Adapter: code crashing when familyLibrary == null in CategoryNames query method
3 participants