diff --git a/src/message.cc b/src/message.cc index 7c65c23..5152a8e 100644 --- a/src/message.cc +++ b/src/message.cc @@ -109,7 +109,8 @@ namespace pEp { string Message::Blob::decode(string encoding) { if (encoding == "") { - if (string(_bl->mime_type) == "application/pEp") + string _mime_type = _bl->mime_type ? _bl->mime_type : ""; + if (_mime_type == "application/pEp") encoding = "pep-sync"; else encoding = "ascii";