mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge pull request #2021 from nextcloud/IOOBE
Prevent index out of bounds exception
This commit is contained in:
commit
fa05e04f66
1 changed files with 2 additions and 1 deletions
|
@ -856,7 +856,8 @@ public class ReceiveExternalFilesActivity extends FileActivity
|
|||
mStreamsToUpload = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
|
||||
}
|
||||
|
||||
if (mStreamsToUpload == null || mStreamsToUpload.get(0) == null) {
|
||||
if (mStreamsToUpload == null || mStreamsToUpload.size() == 0 ||
|
||||
mStreamsToUpload.get(0) == null) {
|
||||
mStreamsToUpload = null;
|
||||
saveTextsFromIntent(intent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue