diff --git a/src/App/PropertyPythonObject.cpp b/src/App/PropertyPythonObject.cpp index 9eeebb2c1f..906debfd13 100644 --- a/src/App/PropertyPythonObject.cpp +++ b/src/App/PropertyPythonObject.cpp @@ -120,6 +120,8 @@ void PropertyPythonObject::fromString(const std::string& repr) { Base::PyGILStateLocker lock; try { + if (repr.empty()) + return; Py::Module pickle(PyImport_ImportModule("json"),true); if (pickle.isNull()) throw Py::Exception();