RohanAditeya / fantasy-football-model

0 stars 0 forks source link

Form attribute in league Team must be Wrapper Float instead of primitive float #2

Open RohanAditeya opened 4 months ago

RohanAditeya commented 4 months ago

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

RohanAditeya commented 1 month ago

Will be fixed in release 1.1.0