Fixed that candidateHost may is null
This commit is contained in:
parent
4aa5837681
commit
3b276da357
|
@ -214,7 +214,9 @@ open class BankIconFinder : IBankIconFinder {
|
|||
val candidateUri = URI.create(urlCandidate.replace("onlinebanking-", ""))
|
||||
val candidateHost = candidateUri.host
|
||||
|
||||
if (candidateHost != null) {
|
||||
return bankNameParts.filter { part -> candidateHost.contains(part, true) }.size
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
log.warn("Could not find host of url '$urlCandidate' in bank name $bankNameParts'", e)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue