Merge pull request #284 from nextcloud/logSendCrash

Crash when sending non-existing log
This commit is contained in:
Tobias Kaminsky 2016-10-05 19:28:33 +02:00 committed by GitHub
commit 6c06147f4e

View file

@ -541,7 +541,8 @@ public class ReceiveExternalFilesActivity extends FileActivity
}
private boolean somethingToUpload() {
return (mStreamsToUpload != null && mStreamsToUpload.get(0) != null || uploadTextSnippet());
return (mStreamsToUpload != null && mStreamsToUpload.size() > 0 && mStreamsToUpload.get(0) != null ||
uploadTextSnippet());
}
private boolean uploadTextSnippet() {