-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApolloClient.Builder.okHttpClient() returns null
instead of this
#5777
Labels
Comments
japhib
added a commit
to japhib/apollo-kotlin
that referenced
this issue
Apr 2, 2024
…ll instead of this
PR: #5778 |
martinbonnin
pushed a commit
that referenced
this issue
Apr 3, 2024
Fixed in 3.8.4 |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
main
Summary
This code:
throws a NullPointerException because the
okHttpClient
setter method onApolloClient.Builder
returnsnull
rather thanthis
.The javadoc for that method says this:
which makes it seem like a typo.
Steps to reproduce the behavior
Run
new ApolloClient.Builder().okHttpClient(new OkHttpClient()).build()
and observe that a NullPointerException is thrown.Logs
No response
The text was updated successfully, but these errors were encountered: