params->Set("version", object->GetVersion());
if (object->GetPackage() == "_api") {
- String file = ConfigObjectUtility::GetObjectConfigPath(object->GetReflectionType(), object->GetName());
+ String file;
+
+ try {
+ file = ConfigObjectUtility::GetObjectConfigPath(object->GetReflectionType(), object->GetName());
+ } catch (const std::exception& ex) {
+ Log(LogNotice, "ApiListener")
+ << "Cannot sync object '" << object->GetName() << "': " << ex.what();
+ return;
+ }
std::ifstream fp(file.CStr(), std::ifstream::binary);
if (!fp)