X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/b22ad95e2fe78bc03a43c83dfef6232a187d8fdd..12c00057e7a4b279ad245d54d906e74a899aec4b:/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java diff --git a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java index 25cb714d..ec4def42 100644 --- a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java @@ -417,14 +417,12 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements // Figure out the path where the dir needs to be created String path; if (mCurrentDir == null) { + // this is just a patch; we should ensure that mCurrentDir never is null if (!mStorageManager.fileExists("/")) { OCFile file = new OCFile("/"); mStorageManager.saveFile(file); - mCurrentDir = mStorageManager.getFileByPath("/"); - } else { - Log.wtf("FileDisplay", "OMG NO!"); - return; } + mCurrentDir = mStorageManager.getFileByPath("/"); } path = FileDisplayActivity.this.mCurrentDir.getRemotePath();