aboutsummaryrefslogtreecommitdiff
path: root/python/slot_requirement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/slot_requirement.cc')
-rw-r--r--python/slot_requirement.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/slot_requirement.cc b/python/slot_requirement.cc
index 09453d968..6cde77286 100644
--- a/python/slot_requirement.cc
+++ b/python/slot_requirement.cc
@@ -72,6 +72,9 @@ namespace
static PyObject *
convert(const std::shared_ptr<const SlotRequirement> & m)
{
+ if (! m)
+ return Py_None;
+
SlotRequirementSptrToPythonVisitor v(m);
m->accept(v);
return bp::incref(v.obj.ptr());