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

NullPointerException: offerToken is required for constructing ProductDetailsParams #476

Closed

Conversation

mchykin
Copy link

@mchykin mchykin commented Mar 8, 2024

  • On android for inapp products.

Fixes #475

…en is required for constructing ProductDetailsParams
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.24%. Comparing base (e01ff81) to head (7cca3b9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #476   +/-   ##
=======================================
  Coverage   47.24%   47.24%           
=======================================
  Files           3        3           
  Lines         472      472           
=======================================
  Hits          223      223           
  Misses        249      249           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 537 to 542
if (offerToken == null) {
offerToken = selectedProductDetails.subscriptionOfferDetails!![0].offerToken
}

productDetailsParamsBuilder.setOfferToken(offerToken)
} else {
offerToken = selectedProductDetails.subscriptionOfferDetails!![0].offerToken
}
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like we can combine this together. Maybe place this conditional statement at the top?

Copy link

This PR is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants