mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
Fix segfault in loop.cpp on empty instance
This commit is contained in:
@@ -228,7 +228,7 @@ bool OpenCascadeKernel::convert(const taxonomy::loop* loop, TopoDS_Wire& wire) {
|
|||||||
*/
|
*/
|
||||||
const bool force_close = false;
|
const bool force_close = false;
|
||||||
|
|
||||||
wire_builder bld(precision_, loop->instance->as<IfcUtil::IfcBaseEntity>());
|
wire_builder bld(precision_, loop->instance ? loop->instance->as<IfcUtil::IfcBaseEntity>() : nullptr);
|
||||||
shape_pair_enumerate(it, bld, force_close);
|
shape_pair_enumerate(it, bld, force_close);
|
||||||
wire = bld.wire();
|
wire = bld.wire();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user