Loading the gameList from a file will fail if the "hours played" or "rating" fields are empty. In theory, this should only happen if the game_list.csv file was manually edited.
The ideal fix would be to store hours and rating as Integer to allow null as a valid value to allow distinctions between "0 hours played" and the field being left empty.
Issue can be recreated by loading the following game_list.csv
"name","system","hours","completion","rating"
"Pong","AcornA","0","Unfinished","0"
"Flappy Bird","Droid","","Null","3"
"Super Mario Bros","NES","0","Completed","0"
Loading the gameList from a file will fail if the "hours played" or "rating" fields are empty. In theory, this should only happen if the
game_list.csv
file was manually edited.The ideal fix would be to store hours and rating as
Integer
to allownull
as a valid value to allow distinctions between "0 hours played" and the field being left empty.Issue can be recreated by loading the following
game_list.csv