JIRA: https://issues.apache.org/jira/browse/JCLOUDS-1044
The `MapTypeAdapter` and `IterableTypeAdapter` classes under the
`NullFilteringTypeAdapterFactories` didn't handle null values correctly and
they tried to read an JSON object (or array) instead of null.
That was source of exceptions like:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected BEGIN_ARRAY but was NULL ...
You can view, comment on, or merge this pull request online at:
https://github.com/jclouds/jclouds/pull/887
-- Commit Summary --
* [JCLOUDS-1044] fix NPE in TypeAdapterFactories
-- File Changes --
M
core/src/main/java/org/jclouds/json/internal/NullFilteringTypeAdapterFactories.java
(9)
M
core/src/test/java/org/jclouds/json/internal/NullFilteringTypeAdapterFactoriesTest.java
(21)
-- Patch Links --
https://github.com/jclouds/jclouds/pull/887.patch
https://github.com/jclouds/jclouds/pull/887.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/887