Skip to content
Snippets Groups Projects
Commit 0fc6d9d1 authored by Maciej Pawel Szymanski's avatar Maciej Pawel Szymanski
Browse files

check if address is nulllptr before setting the adress/releasing instead of relying on StoreID

parent 105d3754
No related branches found
No related tags found
No related merge requests found
......@@ -475,11 +475,12 @@ StatusCode AthenaOutputStreamTool::streamObjects(const DataObjectVec& dataObject
if (dobj->clID() != 1 || addr->par()[0] != "\n") {
if (dobj->clID() != ClassID_traits<DataHeader>::ID()) {
m_dataHeader->insert(proxy, addr);
if (m_store->storeID() != StoreID::EVENT_STORE) proxy->setAddress(addr);
} else {
m_dataHeader->insert(proxy, addr, m_processTag);
}
if (m_store->storeID() == StoreID::EVENT_STORE) {
if (proxy->address() == nullptr) {
proxy->setAddress(addr);
} else {
addr->release();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment