mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 08:58:30 +03:00
Fixed some crashes in refresh of current folder
This commit is contained in:
parent
d7c4d12485
commit
0aef684087
2 changed files with 4 additions and 4 deletions
|
@ -206,9 +206,9 @@ public class SynchronizeFolderOperation extends RemoteOperation {
|
|||
Log_OC.i(TAG, "Synchronized " + mAccount.name + remotePath + ": " + result.getLogMessage());
|
||||
} else {
|
||||
if (result.isException()) {
|
||||
Log_OC.e(TAG, "Synchroned " + mAccount.name + remotePath + ": " + result.getLogMessage(), result.getException());
|
||||
Log_OC.e(TAG, "Synchronized " + mAccount.name + remotePath + ": " + result.getLogMessage(), result.getException());
|
||||
} else {
|
||||
Log_OC.e(TAG, "Synchroned " + mAccount.name + remotePath + ": " + result.getLogMessage());
|
||||
Log_OC.e(TAG, "Synchronized " + mAccount.name + remotePath + ": " + result.getLogMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -870,8 +870,8 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
|
||||
String synchFolderRemotePath = intent.getStringExtra(FileSyncService.SYNC_FOLDER_REMOTE_PATH);
|
||||
|
||||
OCFile currentFile = mStorageManager.getFileById(getFile().getFileId());
|
||||
OCFile currentDir = mStorageManager.getFileById(getCurrentDir().getFileId());
|
||||
OCFile currentFile = (getFile() == null) ? null : mStorageManager.getFileById(getFile().getFileId());
|
||||
OCFile currentDir = (getCurrentDir() == null) ? null : mStorageManager.getFileById(getCurrentDir().getFileId());
|
||||
|
||||
if (currentDir == null) {
|
||||
// current folder was removed from the server
|
||||
|
|
Loading…
Reference in a new issue