mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Fixed. App crashes when selecting an account where you have not accessed yet
This commit is contained in:
parent
0bedcb9128
commit
7283f54158
1 changed files with 4 additions and 2 deletions
|
@ -476,10 +476,12 @@ public class Uploader extends SherlockListActivity implements OnItemClickListene
|
||||||
mParents.add(dir);
|
mParents.add(dir);
|
||||||
}
|
}
|
||||||
//Make sure that path still exists, if it doesn't pop the stack and try the previous path
|
//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.pop();
|
mParents.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue