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