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

Got an error "Fatal Exception: java.lang.RuntimeException" #145

Closed
conzorz opened this issue Jan 14, 2016 · 2 comments
Closed

Got an error "Fatal Exception: java.lang.RuntimeException" #145

conzorz opened this issue Jan 14, 2016 · 2 comments

Comments

@conzorz
Copy link

conzorz commented Jan 14, 2016

Fatal Exception: java.lang.RuntimeException
Failure delivering result ResultInfo{who=null, request=2061984, result=0, data=Intent { (has extras) }} to activity {com...}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

Caused by java.lang.NullPointerException
com.anjlab.android.iab.v3.BillingBase.getPreferencesBaseKey (BillingBase.java:37)
com.anjlab.android.iab.v3.BillingProcessor.getPurchasePayload (BillingProcessor.java:450)
com.anjlab.android.iab.v3.BillingProcessor.handleActivityResult (BillingProcessor.java:379)
com... (My call)

@bood
Copy link

bood commented Feb 15, 2016

Maybe try passing application context instead of activity to BillingProcessor?

@serggl
Copy link
Member

serggl commented Oct 25, 2016

closing this in flavour of #166

@serggl serggl closed this as completed Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants