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

prevent a crash

This commit is contained in:
Hannes Achleitner 2020-01-02 12:25:03 +01:00
parent 015011b6e0
commit e2be78c8f8

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()) {