You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to deserialize the values [[{},null],false,false] and [[null,false],null,true] with the code (new Gson()).fromJson(x, Map.class); two confusing exceptions are thrown: java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap is not Comparable and java.lang.NullPointerException: key == null, respectively.
Such exceptions should not be thrown to the user. Instead, one would expect these cases to be reported with an IllegalArgumentException.
The text was updated successfully, but these errors were encountered:
When trying to deserialize the values
[[{},null],false,false]
and[[null,false],null,true]
with the code(new Gson()).fromJson(x, Map.class);
two confusing exceptions are thrown:java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap is not Comparable
andjava.lang.NullPointerException: key == null
, respectively.Such exceptions should not be thrown to the user. Instead, one would expect these cases to be reported with an
IllegalArgumentException
.The text was updated successfully, but these errors were encountered: