Commit 2915a1f2 authored by Ricki Hirner's avatar Ricki Hirner 🐑

Fix lateinit null value in resource detection; update Kotlin and gradle

parent 5316fb42
Pipeline #23983196 passed with stages
in 8 minutes and 58 seconds
......@@ -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()
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment