1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +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) { } catch (Exception e) {
result = new RemoteOperationResult<>(e); result = new RemoteOperationResult<>(e);
} finally { } finally {
if (result.isSuccess()) { if (result == null) {
Timber.e("Synchronized " + mRemotePath + ": result is null");
} else if (result.isSuccess()) {
Timber.i("Synchronized " + mRemotePath + ": " + result.getLogMessage()); Timber.i("Synchronized " + mRemotePath + ": " + result.getLogMessage());
} else { } else {
if (result.isException()) { if (result.isException()) {