check for null Intent.EXTRA_STREAM

Fixes #3413
Closes #3414
// FREEBIE
This commit is contained in:
Rhodey Orbits 2015-06-12 12:59:10 -07:00 committed by Moxie Marlinspike
parent aa37d6e7f9
commit d935be7b0a

View File

@ -119,6 +119,10 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity
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"))
{