From 7093973e1729939149c3d77da4cc4eed6a3cf9a6 Mon Sep 17 00:00:00 2001 From: dankl Date: Wed, 1 Jan 2020 18:15:23 +0100 Subject: [PATCH] Fixed setting followUpResponse as for re-send messages it's already set and dialog already closed, therefore --- .../src/main/kotlin/net/dankito/fints/FinTsClient.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt index 2cca8176..cf6c0e3b 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt @@ -560,9 +560,11 @@ open class FinTsClient @JvmOverloads constructor( // if there's a Aufsetzpunkt (continuationId) set, then response is not complete yet, there's more information to fetch by sending this Aufsetzpunkt handledResponse.aufsetzpunkt?.let { continuationId -> - handledResponse.followUpResponse = getFollowUpMessageForContinuationId(handledResponse, continuationId, message, bank, customer, dialogData) + if (handledResponse.followUpResponse == null) { // for re-sent messages followUpResponse is already set and dialog already closed -> would be overwritten with an error response that dialog is closed + handledResponse.followUpResponse = getFollowUpMessageForContinuationId(handledResponse, continuationId, message, bank, customer, dialogData) - handledResponse.hasFollowUpMessageButCouldNotReceiveIt = handledResponse.followUpResponse == null + handledResponse.hasFollowUpMessageButCouldNotReceiveIt = handledResponse.followUpResponse == null + } } return handledResponse