diff options
author | fiaxh <git@lightrise.org> | 2020-09-19 11:12:22 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-09-19 11:16:22 +0200 |
commit | 7b58c1596aa13a7ef0dd7897e25f9a80c5929a07 (patch) | |
tree | 0fffcab69b3721090b37cbae104dd7de16a7713c | |
parent | 6325a98cff72ecf7f58c6b29b5321f534e085766 (diff) | |
download | dino-7b58c1596aa13a7ef0dd7897e25f9a80c5929a07.tar.gz dino-7b58c1596aa13a7ef0dd7897e25f9a80c5929a07.zip |
Fix runtime critical
-rw-r--r-- | libdino/src/service/message_correction.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdino/src/service/message_correction.vala b/libdino/src/service/message_correction.vala index 9bedf15b..1374621a 100644 --- a/libdino/src/service/message_correction.vala +++ b/libdino/src/service/message_correction.vala @@ -146,7 +146,9 @@ public class MessageCorrection : StreamInteractionModule, MessageListener { private void on_received_correction(Conversation conversation, int message_id) { ContentItem? content_item = stream_interactor.get_module(ContentItemStore.IDENTITY).get_item(conversation, 1, message_id); - received_correction(content_item); + if (content_item != null) { + received_correction(content_item); + } } private int get_latest_correction_message_id(int account_id, string stanza_id, int counterpart_jid_id, string? counterpart_resource) { |