The Premier league API is returning form as null for some teams in its response and since the Entity League team is defining form as a primitive type float it is throwing the below exception when trying to convert from the premier league API response to the entity object.
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "com.fantasy.data.loader.task.model.ApiClientResponseDTO$LeagueTeamResponseDTO.form()" is null
Therefore we need to change the type of form from the primitive float to the wrapper float
The Premier league API is returning form as null for some teams in its response and since the Entity League team is defining form as a primitive type float it is throwing the below exception when trying to convert from the premier league API response to the entity object.
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "com.fantasy.data.loader.task.model.ApiClientResponseDTO$LeagueTeamResponseDTO.form()" is null
Therefore we need to change the type of form from the primitive float to the wrapper float