crypto: do not assert-crash on disappearing messages
commit27bf90aa5beb37db30b9ed61fb5ce6574f18f229
authorJan Kundrát <jkt@kde.org>
Sun, 24 Feb 2019 15:58:29 +0000 (24 16:58 +0100)
committerJan Kundrát <jkt@kde.org>
Sun, 24 Feb 2019 15:58:29 +0000 (24 16:58 +0100)
tree50a4e2ebd979b7ce18020da82a76af0e65f19e74
parentc142966d87ac124929a3606af61cbd04fe222131
crypto: do not assert-crash on disappearing messages

This is quite unlikely to be hit in real world (I've only hit this once,
and there's one other bug report about this), but if we get reconnected
(and mailboxes trashed) at just the wrong moment when a message would
normally be populated based on remote server's responses, the code would
assert crash here.

This is mainly a blind fix, I have not put much effort into trying to
come up with a solid autotest for this.

BUG: 392800
Change-Id: I3b7539bebc5de0b5c10c4c05d683cd746aca2402
src/Cryptography/MessagePart.cpp