-
Notifications
You must be signed in to change notification settings - Fork 58
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
fix bug NPE at ApolloServerInterceptor #146
Conversation
callBack.onCompleted(); | ||
} | ||
}); | ||
if (httpCall != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of a silent null check can it run the onFailure callback with ApolloNetworkException("Failed to prepare http call, prepared call was null")
and return?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have amended the callback to return the ApolloNetworkException. Please see commit - 4a2cb0b. Appreciate if you could release this on your side if you are agreeable to this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the PR by rebasing with latest changes from master
aws-android-sdk-appsync-api/src/main/java/com/apollographql/apollo/api/InputType.java
Outdated
Show resolved
Hide resolved
...roid-sdk-appsync/src/main/java/com/amazonaws/mobileconnectors/appsync/utils/StringUtils.java
Show resolved
Hide resolved
This reverts commit 15840b7.
Issue #, if available:
Description of changes:
Fix potential crash due to NPE at HttpCall object
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.