Skip to content

Commit 7b57c8b

Browse files
committed
Merge branch 'master' of https://github.com/aothms/IfcOpenShell
1 parent 22563f7 commit 7b57c8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifcwrap/IfcPython.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
%rename("Entity") IfcUntypedEntity;
4343

4444
%typemap(out) IfcEntities {
45-
const unsigned size = $1->Size();
45+
const unsigned size = $1 ? $1->Size() : 0;
4646
$result = PyList_New(size);
4747
for (unsigned i = 0; i < size; ++i) {
4848
PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr((*$1)[i]), SWIGTYPE_p_Ifc__IfcUntypedEntity, 0);

0 commit comments

Comments
 (0)