Commit ea4104d
committed
fix: skip IFC relations with unset relating/related attributes (#217)
Virtual IfcRelSpaceBoundary entries have RelatedBuildingElement unset ($), which processRelations dereferenced as .value on null and crashed. Null/unset relating and related attributes are now filtered out and the relation is skipped when nothing valid remains. Also removes the per-error 100ms setTimeout in the catch, which inflated conversion time on files with many such entries.
Closes #2171 parent 6a4391b commit ea4104d
1 file changed
Lines changed: 28 additions & 8 deletions
Lines changed: 28 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
591 | 601 | | |
592 | 602 | | |
593 | 603 | | |
594 | 604 | | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
599 | 619 | | |
600 | 620 | | |
601 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
602 | 625 | | |
603 | 626 | | |
604 | 627 | | |
605 | 628 | | |
606 | 629 | | |
607 | 630 | | |
608 | 631 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | 632 | | |
613 | 633 | | |
614 | 634 | | |
| |||
0 commit comments