Skip to content

Commit

Permalink
Revit(Fix): Null value for receive mode setting causing conversion to…
Browse files Browse the repository at this point in the history
… fail (#1737)

Co-authored-by: Connor Ivy <[email protected]>
  • Loading branch information
connorivy and Connor Ivy authored Oct 18, 2022
1 parent b5ebe1d commit fe22d4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public object ConvertToNative(Base @object)
{
// Get settings for receive direct meshes , assumes objects aren't nested like in Tekla Structures
Settings.TryGetValue("recieve-objects-mesh", out string recieveModelMesh);
if (bool.Parse(recieveModelMesh) == true)
if (bool.Parse(recieveModelMesh ?? "false") == true)
{
try
{
Expand Down

0 comments on commit fe22d4d

Please sign in to comment.