add: if (rec.subject_.isNull()) rec.subject_ = QString::fromUtf8("");
context: operator >> (QDataStream & s, EmpathIndexRecord & rec){    Q_UINT8 statusAsInt;    Q_UINT8 taggedAsInt;    s   >> rec.id_        >> taggedAsInt        >> rec.subject_        >> rec.sender_        >> rec.date_        >> statusAsInt        >> rec.size_        >> rec.messageId_        >> rec.parentMessageId_;    rec.status_ = (RMM::MessageStatus)statusAsInt;    rec.tagged_ = (bool)taggedAsInt;        return s;}