Commit 4bdef10d authored by Steven Murray's avatar Steven Murray
Browse files

Fixed silly dereferencing of known nullptr

parent 04120e69
......@@ -139,7 +139,7 @@ void OracleCatalogue::deleteArchiveFile(const std::string &diskInstanceName, con
if(nullptr == archiveFile.get()) {
log::ScopedParamContainer spc(lc);
spc.add("fileId", std::to_string(archiveFile->archiveFileID));
spc.add("fileId", archiveFileId);
lc.log(log::WARNING, "Ignoring request to delete archive file because it does not exist in the catalogue");
return;
}
......
......@@ -68,7 +68,7 @@ void SqliteCatalogue::deleteArchiveFile(const std::string &diskInstanceName, con
if(nullptr == archiveFile.get()) {
log::ScopedParamContainer spc(lc);
spc.add("fileId", std::to_string(archiveFile->archiveFileID));
spc.add("fileId", archiveFileId);
lc.log(log::WARNING, "Ignoring request to delete archive file because it does not exist in the catalogue");
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment