forked from mirror/monocles_chat_clean
Fix NPE
(cherry picked from commit 6ef1b1bbda88bd08d3a25cf8a8df3efcd3575dab)
This commit is contained in:
parent
2c867bdb14
commit
95e5baa925
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ public class UriHandlerActivity extends AppCompatActivity {
|
|||
final XmppUri xmppUri = new XmppUri(uri);
|
||||
final List<Jid> 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();
|
||||
|
|
Loading…
Add table
Reference in a new issue