mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Fixed. App crashes when accesing to an account where you have not accessed after uploading a file in another
This commit is contained in:
parent
7283f54158
commit
2790c2379d
1 changed files with 1 additions and 3 deletions
|
@ -476,11 +476,9 @@ public class Uploader extends SherlockListActivity implements OnItemClickListene
|
|||
mParents.add(dir);
|
||||
}
|
||||
//Make sure that path still exists, if it doesn't pop the stack and try the previous path
|
||||
if (mParents.size() > 1) {
|
||||
while(!mStorageManager.fileExists(generatePath(mParents))){
|
||||
while(!mStorageManager.fileExists(generatePath(mParents)) && mParents.size() > 1){
|
||||
mParents.pop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue