diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-08-03 18:12:35 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-08-09 17:34:18 +0300 |
commit | 53be92d4792f6337b046f8377ad3ec509423d9e9 (patch) | |
tree | 0c08c9371bdb8c6393d6c027aa634d3303ad50cd /app/src/main/java/it/niedermann/nextcloud/deck/persistence | |
parent | 2a4222d0a9a6a3f84eed0b3e5513f4c42c49992d (diff) |
#492 #631 fix 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/helpers/providers/AccessControlDataProvider.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/AccessControlDataProvider.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/AccessControlDataProvider.java index 53caba42a..36e5d9522 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/AccessControlDataProvider.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/AccessControlDataProvider.java @@ -110,6 +110,9 @@ public class AccessControlDataProvider extends AbstractSyncDataProvider<AccessCo return; } dataBaseAdapter.deleteGroupMembershipsOfGroup(entity.getUser().getLocalId()); + if (entity.getGroupMemberUIDs() == null) { + return; + } for (String groupMemberUID : entity.getGroupMemberUIDs().getUids()) { User member = dataBaseAdapter.getUserByUidDirectly(entity.getAccountId(), groupMemberUID); if (member != null) { |