mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fixed crash when an upload is confirmed with no file selected
This commit is contained in:
parent
6faa03a084
commit
a1a31b68d9
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ public class UploadFilesActivity extends SherlockFragmentActivity implements
|
|||
protected Boolean doInBackground(Void... params) {
|
||||
String[] checkedFilePaths = mFileListFragment.getCheckedFilePaths();
|
||||
long total = 0;
|
||||
for (int i=0; i < checkedFilePaths.length ; i++) {
|
||||
for (int i=0; checkedFilePaths != null && i < checkedFilePaths.length ; i++) {
|
||||
String localPath = checkedFilePaths[i];
|
||||
File localFile = new File(localPath);
|
||||
total += localFile.length();
|
||||
|
|
Loading…
Reference in a new issue