From c67e3cfdfcee13b3b9be33dc02dc50f4ef1f7483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zsef=20L=2E=20Kiss?= <50739844+jozseflkiss@users.noreply.github.com> Date: Mon, 18 Sep 2023 14:48:58 +0200 Subject: [PATCH] fix(Archicad): Room deserialisation fix (#2935) level can be null --- Objects/Objects/BuiltElements/Room.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/Objects/BuiltElements/Room.cs b/Objects/Objects/BuiltElements/Room.cs index 9fdedfa801..4924761480 100644 --- a/Objects/Objects/BuiltElements/Room.cs +++ b/Objects/Objects/BuiltElements/Room.cs @@ -80,7 +80,7 @@ public class ArchicadRoom : Room public override Level level { get => archicadLevel; - set => archicadLevel = value as ArchicadLevel ?? throw new System.ArgumentException("Must be ArchicadLevel"); + set => archicadLevel = value as ArchicadLevel ?? null; } public double height { get; set; }