mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-07-21 18:51:52 +00:00
Fix lateinit null value in resource detection; update Kotlin and gradle
This commit is contained in:
parent
5316fb42a5
commit
2915a1f2b6
|
@ -163,7 +163,7 @@ class DavResourceFinder(
|
|||
try {
|
||||
val davBase = DavResource(httpClient.okHttpClient, baseURL, log)
|
||||
|
||||
lateinit var response: DavResponse
|
||||
var response: DavResponse? = null
|
||||
try {
|
||||
when (service) {
|
||||
Service.CARDDAV -> {
|
||||
|
@ -200,7 +200,7 @@ class DavResourceFinder(
|
|||
}
|
||||
}
|
||||
} finally {
|
||||
response.close()
|
||||
response?.close()
|
||||
}
|
||||
|
||||
// If a principal has been detected successfully, ensure that it provides the required service.
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
ext.dokka_version = '0.9.16'
|
||||
ext.kotlin_version = '1.2.41'
|
||||
ext.kotlin_version = '1.2.50'
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-all.zip
|
||||
|
|
Loading…
Reference in a new issue