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

This commit is contained in:
Ricki Hirner 2018-06-16 15:07:25 +02:00
parent 5316fb42a5
commit 2915a1f2b6
3 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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()

View file

@ -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