Commit 0c52589e authored by Matthieu Dorier's avatar Matthieu Dorier

added check that bulk handle is not null before incrementing its refcount

parent f67f1ac3
......@@ -144,9 +144,11 @@ public:
bulk(const bulk& other)
: m_engine(other.m_engine), m_bulk(other.m_bulk),
m_is_local(other.m_is_local), m_eager_mode(other.m_eager_mode) {
if(other.m_bulk != HG_BULK_NULL) {
hg_return_t ret = margo_bulk_ref_incr(m_bulk);
MARGO_ASSERT(ret, margo_bulk_ref_incr);
}
}
/**
* @brief Move constructor.
......
Markdown is supported
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