diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-07-18 15:00:30 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2020-07-18 15:00:30 +0300 |
commit | 0c64fb071b061a4dc31ef638883786bd45d10422 (patch) | |
tree | 3adee7d5e72b3175140ceee994ee8f9861dc16b9 /app/src/main/java/it/niedermann/nextcloud/deck/model | |
parent | d910e083cebc5c27e6d832fbefe3f81807b6f35c (diff) |
#554 code more defensive
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/Account.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/Account.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/Account.java index ba8fb72b7..1d65e26dd 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/Account.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/Account.java @@ -75,6 +75,10 @@ public class Account implements Serializable { } public void applyCapabilities(Capabilities capabilities) { + if (capabilities == null) { + maintenanceEnabled = true; + return; + } maintenanceEnabled = capabilities.isMaintenanceEnabled(); if (!isMaintenanceEnabled()) { try { |