aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-08-31 15:13:06 +0200
committerChristian Schneppe <christian@pix-art.de>2019-08-31 15:13:06 +0200
commitb519d6370b2dd0aa8b54185ee8f5c15936b4249f (patch)
tree3a0572d9ee45a348df19900eb4c6f0c7f1b50949
parent6d83b098e660725be661cd3a2e6ae2ff9c538f4a (diff)
fixed send_multiple share intent with empty extras
-rw-r--r--src/main/java/de/pixart/messenger/ui/ShareWithActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
index 4cc97994d..ade413771 100644
--- a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
@@ -126,7 +126,8 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
this.share.text = text;
}
} else if (Intent.ACTION_SEND_MULTIPLE.equals(action)) {
- this.share.uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
+ final ArrayList<Uri> uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
+ this.share.uris = uris == null ? new ArrayList<>() : uris;
}
if (xmppConnectionServiceBound) {
xmppConnectionService.populateWithOrderedConversations(mConversations, this.share.uris.size() == 0, false);