Skip to content

Commit

Permalink
check for null Intent.EXTRA_STREAM
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodey authored and pR0Ps committed Jun 17, 2015
1 parent 06fe2f2 commit 0fa044d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/smssecure/smssecure/ShareActivity.java
Expand Up @@ -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"))
{
Expand Down

0 comments on commit 0fa044d

Please sign in to comment.