Page MenuHomePhabricator

D3635.diff
No OneTemporary

D3635.diff

diff --git a/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.cpp b/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.cpp
--- a/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.cpp
+++ b/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.cpp
@@ -56,8 +56,11 @@
std::string(itemFromDB.at(LogItem::FIELD_PERSISTED_IN_BLOB).GetS())
.c_str());
this->value = itemFromDB.at(LogItem::FIELD_VALUE).GetS();
- this->attachmentHolders =
- itemFromDB.at(LogItem::FIELD_ATTACHMENT_HOLDERS).GetSS();
+ auto attachmentsHolders =
+ itemFromDB.find(LogItem::FIELD_ATTACHMENT_HOLDERS);
+ if (attachmentsHolders != itemFromDB.end()) {
+ this->attachmentHolders = attachmentsHolders->second.GetSS();
+ }
} catch (std::logic_error &e) {
throw std::runtime_error(
"invalid log item provided, " + std::string(e.what()));

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 12:37 PM (20 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575596
Default Alt Text
D3635.diff (975 B)

Event Timeline