diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index 15390fc85..bba19fcd1 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -561,11 +561,13 @@ PyObject *PropertyLinkSubList::getPyObject(void) for(int i = 0;igetPyObject()); - tup[1] = Py::String(_lSubList[i].c_str()); + std::string subItem; + if (_lSubList.size() > i) + subItem = _lSubList[i]; + tup[1] = Py::String(subItem); sequence[i] = tup; } return Py::new_reference_to(sequence); - } void PropertyLinkSubList::setPyObject(PyObject *value)