Skip to content

Commit e67b2a9

Browse files
IndexOutOfBounds check #283
1 parent f3fd4c7 commit e67b2a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,8 @@ private void prepareStreamsToUpload() {
541541
}
542542

543543
private boolean somethingToUpload() {
544-
return (mStreamsToUpload != null && mStreamsToUpload.get(0) != null || uploadTextSnippet());
544+
return (mStreamsToUpload != null && mStreamsToUpload.size() > 0 && mStreamsToUpload.get(0) != null ||
545+
uploadTextSnippet());
545546
}
546547

547548
private boolean uploadTextSnippet() {

0 commit comments

Comments
 (0)