From 152d5f8bb51d5149113612dadf7e6375ac1a0d27 Mon Sep 17 00:00:00 2001 From: Winston Lowe Date: Sun, 15 Feb 2026 12:57:49 -0800 Subject: [PATCH] Update lib/models/contact.dart Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- lib/models/contact.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/models/contact.dart b/lib/models/contact.dart index 77404e8..143a62a 100644 --- a/lib/models/contact.dart +++ b/lib/models/contact.dart @@ -160,6 +160,7 @@ class Contact { } static Contact? fromFrame(Uint8List data) { + if (data.isEmpty) return null; if (data[0] != respCodeContact) return null; try { final pubKey = Uint8List.fromList(