Skip to content
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

Merged
merged 8 commits into from
Apr 12, 2019
Merged

Conversation

alanvan0502
Copy link
Contributor

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.

callBack.onCompleted();
}
});
if (httpCall != null) {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@desokroshan desokroshan left a 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

@alanvan0502
Copy link
Contributor Author

@minbi - We also fixed another bug at AppSyncCustomNetworkInvoker - IllegalArgumentException. Appreciate if you can review and merge this PR (see commit 42991c0)
Screen Shot 2019-04-12 at 1 32 16 PM

@minbi minbi merged commit bb12482 into awslabs:master Apr 12, 2019
@minbi minbi self-assigned this Apr 12, 2019
@minbi minbi added AppSync bug Something isn't working labels Apr 12, 2019
minbi added a commit that referenced this pull request Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants