diff options
author | 2011-07-16 23:51:39 +0100 | |
---|---|---|
committer | 2011-07-16 23:51:39 +0100 | |
commit | 23924c58707ee2a2aef039163edbbcc5d0746508 (patch) | |
tree | 99684a90c9f5f1b2e7a6246a66e2d4cff341062b /python/slot_requirement.cc | |
parent | 7ce688d7cf41055a607d933077664c1160ae0a30 (diff) | |
download | paludis-23924c58707ee2a2aef039163edbbcc5d0746508.tar.gz paludis-23924c58707ee2a2aef039163edbbcc5d0746508.tar.xz |
Check for null explicitly
Diffstat (limited to 'python/slot_requirement.cc')
-rw-r--r-- | python/slot_requirement.cc | 3 |
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()); |