Commit 365cfcf0 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/components/contact/VcardModel): add assert on clone

parent 1de0129e
......@@ -98,7 +98,10 @@ VcardModel::~VcardModel () {
// -----------------------------------------------------------------------------
VcardModel *VcardModel::clone () const {
return new VcardModel(mVcard->clone());
shared_ptr<linphone::Vcard> vcard = mVcard->clone();
Q_ASSERT(vcard != nullptr);
return new VcardModel(vcard);
}
// -----------------------------------------------------------------------------
......
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