Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3354265
D3635.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
975 B
Referenced Files
None
Subscribers
None
D3635.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3635: [services] Backup - Log item - handle lack of attachment holders
Attached
Detach File
Event Timeline
Log In to Comment