From 7b57c8b5b3b08e1e7fd441a449befde383509697 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 9 Jul 2013 09:01:06 -0700 Subject: [PATCH] Merge branch 'master' of https://github.com/aothms/IfcOpenShell --- src/ifcwrap/IfcPython.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index 13d7a3de24..02179b3210 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -42,7 +42,7 @@ %rename("Entity") IfcUntypedEntity; %typemap(out) IfcEntities { - const unsigned size = $1->Size(); + const unsigned size = $1 ? $1->Size() : 0; $result = PyList_New(size); for (unsigned i = 0; i < size; ++i) { PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr((*$1)[i]), SWIGTYPE_p_Ifc__IfcUntypedEntity, 0);