diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-10-04 17:14:27 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2020-10-04 17:14:39 +0300 |
commit | 00d82daf51644dfa28e0f6764a61a4a10d609c51 (patch) | |
tree | 56bdb07dc976513db7f2be8dfce04a9511873268 /app/src/main/java/it/niedermann/nextcloud/deck/persistence | |
parent | df7005e8f028014c483bb84906d5d58f196259eb (diff) |
#687 fixed npe
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/persistence')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java index acb4e0196..f964429b3 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java @@ -914,7 +914,9 @@ public class SyncManager { stack.setBoardId(board.getLocalId()); fullStack.setStack(stack); fullStack.setAccountId(accountId); - new DataPropagationHelper(serverAdapter, dataBaseAdapter).createEntity(new StackDataProvider(null, board), fullStack, getCallbackToLiveDataConverter(account, liveData)); + if (board.getBoard().getId() != null) { + new DataPropagationHelper(serverAdapter, dataBaseAdapter).createEntity(new StackDataProvider(null, board), fullStack, getCallbackToLiveDataConverter(account, liveData)); + } }); return liveData; } |