https://kotlinlang.org logo
Title
b

Bilagi

03/07/2019, 7:46 AM
I have data class which contains non nullable parameters like
first_name
,
last_name
etc also using
Gson
for parsing. Suppose server doesn't send any one of the key value. I am expecting app should crash but it is not crashing. When i degug value is
null
.Any one knows what is the reason ?
m

mzgreen

03/07/2019, 7:56 AM
Have you considered using Mosi instead of Gson? https://github.com/square/moshi
b

Bilagi

03/07/2019, 8:05 AM
No it is GSON
a

arekolek

03/07/2019, 8:19 AM
Yeah we know 😄
And that’s the problem