From 95e5baa925b84e3a0a9ff0469252a57082268f16 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 15 Jan 2024 11:28:37 -0500 Subject: [PATCH] Fix NPE (cherry picked from commit 6ef1b1bbda88bd08d3a25cf8a8df3efcd3575dab) --- src/main/java/eu/siacs/conversations/ui/UriHandlerActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/ui/UriHandlerActivity.java b/src/main/java/eu/siacs/conversations/ui/UriHandlerActivity.java index 6511bad18..5c5c960d2 100644 --- a/src/main/java/eu/siacs/conversations/ui/UriHandlerActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/UriHandlerActivity.java @@ -152,6 +152,8 @@ public class UriHandlerActivity extends AppCompatActivity { final XmppUri xmppUri = new XmppUri(uri); final List accounts = DatabaseBackend.getInstance(this).getAccountJids(false); + if (uri == null) return true; + if (uri.getScheme().equals("sgnl")) { stickers = Uri.parse("https://stickers.cheogram.com/signal/" + uri.getQueryParameter("pack_id") + "," + uri.getQueryParameter("pack_key")); if (hasStoragePermission(1)) downloadStickers();