From 7b58c1596aa13a7ef0dd7897e25f9a80c5929a07 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 19 Sep 2020 11:12:22 +0200 Subject: [PATCH] Fix runtime critical --- libdino/src/service/message_correction.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {