From a2e3a63a5dfcba8815ca5e55147531d006ed96e6 Mon Sep 17 00:00:00 2001 From: Rhodey Orbits Date: Fri, 12 Jun 2015 12:59:10 -0700 Subject: [PATCH] check for null Intent.EXTRA_STREAM Fixes 3413 // FREEBIE --- src/org/thoughtcrime/securesms/ShareActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ShareActivity.java b/src/org/thoughtcrime/securesms/ShareActivity.java index 0acb3f78015..bb69698f111 100644 --- a/src/org/thoughtcrime/securesms/ShareActivity.java +++ b/src/org/thoughtcrime/securesms/ShareActivity.java @@ -119,6 +119,10 @@ private void createConversation(long threadId, Recipients recipients, int distri private Uri getStreamExtra() { Uri streamUri = getIntent().getParcelableExtra(Intent.EXTRA_STREAM); + if (streamUri == null) { + return null; + } + if (streamUri.getAuthority().equals("com.google.android.apps.photos.contentprovider") && streamUri.toString().endsWith("/ACTUAL")) {