Skip to content

Conversation

@changxu0306
Copy link
Contributor

According to the Pinpoint Documentation, Results field of EventsResponse is not guaranteed to be present. The same assumption should also be made for the .get(endpoint.getEndpointId()) call to avoid NullPointerException.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@changxu0306 changxu0306 added the pinpoint Issues with the AWS Android SDK for Pinpoint. label Nov 10, 2021
@changxu0306 changxu0306 requested a review from a team November 10, 2021 17:49
.getResults()
.getResults();
if (results == null || results.isEmpty()) {
log.error("PutEventsResult is empty!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we write a unit test for this?

@changxu0306 changxu0306 merged commit 3e6e1f8 into main Nov 12, 2021
@changxu0306 changxu0306 deleted the endpoint_response branch November 12, 2021 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pinpoint Issues with the AWS Android SDK for Pinpoint.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants