Skip to content

Commit 6c06147

Browse files
Merge pull request #284 from nextcloud/logSendCrash
Crash when sending non-existing log
2 parents a2eb1af + 4a774a8 commit 6c06147

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)