commit b903776f449e3cd207011aa5177eb237cc410cb6 parent 2a57fbbeb0e52b423d9d674026dbf47203b60d66 Author: Marc Stibane <marc@taler.net> Date: Wed, 19 Aug 2026 07:29:28 +0200 AI: guard against potential JSON decoding error Diffstat:
| M | TalerWallet1/Backend/WalletCore.swift | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -608,8 +608,8 @@ extension WalletCore { if let json = result, error == nil { do { if asJSON { - if let message { - continuation.resume(returning: (message as! T.Response, requestId)) + if let message, let response = message as? T.Response { + continuation.resume(returning: (response, requestId)) } else { continuation.resume(throwing: TransactionDecodingError.invalidStringValue) }