From: jabarros Date: Tue, 4 Nov 2014 10:15:59 +0000 (+0100) Subject: Fixed. App crashes when accesing to an account where you have not accessed after... X-Git-Tag: oc-android-1.7.0_signed~119^2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/2790c2379df2a4fcf01c9f3894eb90b6ab7d0415 Fixed. App crashes when accesing to an account where you have not accessed after uploading a file in another --- diff --git a/src/com/owncloud/android/ui/activity/Uploader.java b/src/com/owncloud/android/ui/activity/Uploader.java index f2493344..66359f3d 100644 --- a/src/com/owncloud/android/ui/activity/Uploader.java +++ b/src/com/owncloud/android/ui/activity/Uploader.java @@ -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(); } - } }