We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5684f0 commit d35e775Copy full SHA for d35e775
src/ifcwrap/IfcPython.i
@@ -42,7 +42,7 @@
42
%rename("Entity") IfcUntypedEntity;
43
44
%typemap(out) IfcEntities {
45
- const unsigned size = $1->Size();
+ const unsigned size = $1 ? $1->Size() : 0;
46
$result = PyList_New(size);
47
for (unsigned i = 0; i < size; ++i) {
48
PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr((*$1)[i]), SWIGTYPE_p_Ifc__IfcUntypedEntity, 0);
0 commit comments