From 74ca991ddf89a1ff9096303ab64ac861003c492f Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 1 Mar 2023 20:02:02 +0100 Subject: Fix critical warnings after DTLS-SRTP calls without OMEMO verification libdino-CRITICAL **: dino_plugins_encryption_list_entry_get_encryption_icon_name: assertion 'self != NULL' failed --- main/src/ui/conversation_content_view/conversation_item_skeleton.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala index b6c0f7c6..bbde76b1 100644 --- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala +++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala @@ -150,7 +150,7 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface, if (item.encryption != Encryption.NONE && item.encryption != Encryption.UNKNOWN && ci != null) { string? icon_name = null; var encryption_entry = app.plugin_registry.encryption_list_entries[item.encryption]; - icon_name = encryption_entry.get_encryption_icon_name(conversation, ci.content_item); + if (encryption_entry != null) icon_name = encryption_entry.get_encryption_icon_name(conversation, ci.content_item); encryption_image.icon_name = icon_name ?? "changes-prevent-symbolic"; encryption_image.visible = true; } -- cgit v1.2.3-70-g09d2