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
Currently, the Client.Builder() class allows you to construct an instance without specifying, for example, a Serializer. The result is you get what appears to be a valid Client, but later when you send requests, they fail at the serialization step with a NullPointerException.
A Client instance that can be constructed, but cannot be used, is rather of pointless.
The solution should either
Have the Client.Builder use reasonable defaults, such as apache HttpProvider, NoAuthorizer, and JacksonSerializer, when no override was specified.
Have the Client.Builder.build() method validate not null with assertions that fail-fast and a clear null indicator.
The text was updated successfully, but these errors were encountered:
Currently, the Client.Builder() class allows you to construct an instance without specifying, for example, a Serializer. The result is you get what appears to be a valid Client, but later when you send requests, they fail at the serialization step with a NullPointerException.
A Client instance that can be constructed, but cannot be used, is rather of pointless.
The solution should either
The text was updated successfully, but these errors were encountered: