Closed LaMonF closed 5 years ago
First investigation :
if len(resultByLine) > 4 { // When results are not up to date len(result_line_list) == 4
numberWinner = extractNumberWinner(resultByLine[11])
winnerPrize = extractWinnerPrize(resultByLine[11])
nextLotteryDate = extractNextLotteryDate(resultByLine[12])
nextLotteryPrize = extractNextLotteryPrize(resultByLine[12])
}
resultByLine[11] ==> index out of range
When results coming from the API are not up to date yet ! application fails with :