From c7d6718ccea8fa552ca27410183a60afaa78fd49 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 23 Sep 2020 03:46:48 +0200 Subject: [PATCH] Fixed that if alsoRetrieveBalance is set to false or account doesn't support retrieving balance execution stops here forever and never returns --- .../kotlin/net/dankito/banking/fints/FinTsClient.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt index 61a3eefb..cd1a6f64 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -423,6 +423,10 @@ open class FinTsClient( callback(response) } } + else { + callback(BankResponse(false, errorMessage = "Either not requested to get balance or account does not support retrieving balance. " + + "Should retrieve balance = ${parameter.alsoRetrieveBalance}, account supports retrieving balance = ${parameter.account.supportsRetrievingBalance}.")) + } }