Retrofit: java.lang.IllegalArgumentException: Field map contained null value

Created on 1 Nov 2016  路  3Comments  路  Source: square/retrofit

java.lang.IllegalArgumentException: Field map contained null value

Most helpful comment

Is ignore this field better than throw a exception? Or provide a option to configure.

There are some nullable fields in our api, we must manual filter them now because this feature.

All 3 comments

There's no reason to have a null value in a field map. Just omit the key altogether.

Is ignore this field better than throw a exception? Or provide a option to configure.

There are some nullable fields in our api, we must manual filter them now because this feature.

Is ignore this field better than throw a exception? Or provide a option to configure.

There are some nullable fields in our api, we must manual filter them now because this feature.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Liberuman picture Liberuman  路  3Comments

ramonmoraes8080 picture ramonmoraes8080  路  3Comments

attaullahpro picture attaullahpro  路  3Comments

liuzhen2008 picture liuzhen2008  路  3Comments

kkunsue picture kkunsue  路  3Comments