Skip to content

Commit

Permalink
Create empty list of tags if fail to cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Taylor authored and IsakNaslundBh committed May 19, 2022
1 parent ed57208 commit a8d0729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data_Engine/Query/ValuesAt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private static CustomObject AsCustomObject(DataRow row, DataColumnCollection col
if (col.ColumnName == "Name")
obj.Name = row[col].ToString();
else if (col.ColumnName == "Tags")
obj.Tags = (HashSet<string>)row[col];
obj.Tags = row[col] as HashSet<string> ?? new HashSet<string>();
else if (col.ColumnName == "BHoM_Guid")
obj.BHoM_Guid = (Guid)row[col];
else
Expand Down

0 comments on commit a8d0729

Please sign in to comment.