Fixed. App crashes when selecting an account where you have not accessed yet

This commit is contained in:
jabarros 2014-11-03 13:00:13 +01:00
parent 0bedcb9128
commit 7283f54158

View file

@ -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