diff --git a/src/com/owncloud/android/lib/resources/status/GetRemoteCapabilitiesOperation.java b/src/com/owncloud/android/lib/resources/status/GetRemoteCapabilitiesOperation.java index 3f87e5cc43b..a3c77e2610c 100644 --- a/src/com/owncloud/android/lib/resources/status/GetRemoteCapabilitiesOperation.java +++ b/src/com/owncloud/android/lib/resources/status/GetRemoteCapabilitiesOperation.java @@ -1,6 +1,7 @@ /* ownCloud Android Library is available under MIT license * @author masensio - * Copyright (C) 2016 ownCloud GmbH. + * @author Semih Serhat Karakaya + * Copyright (C) 2018 ownCloud GmbH. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -245,8 +246,10 @@ protected RemoteOperationResult run(OwnCloudClient client) { capability.setFilesUndelete(CapabilityBooleanType.fromBooleanValue( respFiles.getBoolean(PROPERTY_UNDELETE))); } - capability.setFilesVersioning(CapabilityBooleanType.fromBooleanValue( - respFiles.getBoolean(PROPERTY_VERSIONING))); + if (respFiles.has(PROPERTY_VERSIONING)) { + capability.setFilesVersioning(CapabilityBooleanType.fromBooleanValue( + respFiles.getBoolean(PROPERTY_VERSIONING))); + } Log_OC.d(TAG, "*** Added " + NODE_FILES); } }