1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Merge pull request #294 from owncloud/preventCrash

prevent a crash
This commit is contained in:
David González Verdugo 2020-02-11 08:39:56 +01:00 committed by GitHub
commit b77cecedab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,9 @@ public class ReadRemoteFolderOperation extends RemoteOperation<ArrayList<RemoteF
} catch (Exception e) {
result = new RemoteOperationResult<>(e);
} finally {
if (result.isSuccess()) {
if (result == null) {
Timber.e("Synchronized " + mRemotePath + ": result is null");
} else if (result.isSuccess()) {
Timber.i("Synchronized " + mRemotePath + ": " + result.getLogMessage());
} else {
if (result.isException()) {