Fixed. App crashes when accesing to an account where you have not accessed after...
authorjabarros <jabarros@solidgear.es>
Tue, 4 Nov 2014 10:15:59 +0000 (11:15 +0100)
committerjabarros <jabarros@solidgear.es>
Tue, 4 Nov 2014 10:15:59 +0000 (11:15 +0100)
src/com/owncloud/android/ui/activity/Uploader.java

index f249334..66359f3 100644 (file)
@@ -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();
             }
-        }
     }