Commit 7a2e8f49 authored by Martin Straka's avatar Martin Straka

Fixed returned NULL pointer

parent 35c53e24
......@@ -154,7 +154,7 @@ MsgEnvelope *Messages::getReplyMsgDataAndSetRecipient(
if (msgDb == Q_NULLPTR) {
qCritical("%s", "Cannot open message database.");
return new (std::nothrow) MsgEnvelope();
return Q_NULLPTR;
MsgEnvelope msg = msgDb->getMessageEnvelopeData(msgId);
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