Fixed. App crashes when selecting an account where you have not accessed yet
authorjabarros <jabarros@solidgear.es>
Mon, 3 Nov 2014 12:00:13 +0000 (13:00 +0100)
committerjabarros <jabarros@solidgear.es>
Mon, 3 Nov 2014 12:00:13 +0000 (13:00 +0100)
src/com/owncloud/android/ui/activity/Uploader.java

index d0a775f..f249334 100644 (file)
@@ -476,8 +476,10 @@ 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
-        while(!mStorageManager.fileExists(generatePath(mParents))){
-            mParents.pop();
+        if (mParents.size() > 1) {
+            while(!mStorageManager.fileExists(generatePath(mParents))){
+                mParents.pop();
+            }
         }
     }