Skip to content

Serialiser_Engine: Protect Bson not having an index #3168

Closed
@FraserGreenroyd

Description

@FraserGreenroyd

While testing BHoM/Versioning_Toolkit#231 locally with @albinber we found a TargetInvocation error being thrown https://github.com/BHoM/BHoM_Engine/blob/develop/Serialiser_Engine/Compute/Deserialise/List.cs#L88 here - where the bson object was an array according to bson, but had no elements so [0] was throwing an error.

Add a protection to that just in case.

Metadata

Metadata

Labels

type:bugError or unexpected behaviour

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions