From f426632e014402e1f09c3e4c89b787187884c66a Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 28 Oct 2020 15:43:23 +0100 Subject: [PATCH] Fixed that countDaysForWhichTransactionsAreKept may is null --- ui/BankingiOSApp/BankingiOSApp/persistence/Mapper.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/persistence/Mapper.swift b/ui/BankingiOSApp/BankingiOSApp/persistence/Mapper.swift index 89a1bef2..e877a71f 100644 --- a/ui/BankingiOSApp/BankingiOSApp/persistence/Mapper.swift +++ b/ui/BankingiOSApp/BankingiOSApp/persistence/Mapper.swift @@ -105,7 +105,7 @@ class Mapper { mapped.haveAllTransactionsBeenRetrieved = account.haveAllTransactionsBeenRetrieved mapped.isAccountTypeSupportedByApplication = account.isAccountTypeSupportedByApplication - mapped.countDaysForWhichTransactionsAreKept = map(account.countDaysForWhichTransactionsAreKept)! + mapped.countDaysForWhichTransactionsAreKept = map(account.countDaysForWhichTransactionsAreKept ?? 0)! mapped.userSetDisplayName = account.userSetDisplayName mapped.displayIndex = account.displayIndex