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

NPE on auto-test done by Google #48

Open
CyrilleGuimezanes opened this issue Jan 13, 2017 · 4 comments
Open

NPE on auto-test done by Google #48

CyrilleGuimezanes opened this issue Jan 13, 2017 · 4 comments
Labels

Comments

@CyrilleGuimezanes
Copy link
Contributor

Hello,

When I publish my app, Google starts auto-test on various devices. Since two releases Google give a NPE with this stack trace:

java.lang.NullPointerException: Attempt to invoke interface method 'android.os.Bundle com.android.vending.billing.IInAppBillingService.getBuyIntent(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference
 	at com.smartmobilesoftware.util.IabHelper.launchPurchaseFlow(IabHelper.java:386)
 	at com.smartmobilesoftware.util.IabHelper.launchPurchaseFlow(IabHelper.java:338)
 	at jp.wizcorp.wizpurchase.WizPurchase.buy(WizPurchase.java:416)
 	at jp.wizcorp.wizpurchase.WizPurchase.access$200(WizPurchase.java:40)
 	at jp.wizcorp.wizpurchase.WizPurchase$4.run(WizPurchase.java:296)
 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
 	at java.lang.Thread.run(Thread.java:818)

In a physical use, no exception...

Google told me that the tested device is Galaxy S6 under Android 5.1. Others 5.1 devices pass all the tests.

@jrouault
Copy link
Member

Thanks for pointing out this issue. 👍

I'll try to have a look at this this week.

@jrouault jrouault added the bug label Jan 16, 2017
@jrouault
Copy link
Member

@CyrilleGuimezanes By the way, do you have any JS code to share that could help reproduce/understand this issue?

@CyrilleGuimezanes
Copy link
Contributor Author

Actually it's a really simple use of your plugin and in a normal use (when I use my phone under android 6.0), it not crash

Here is the logcat attached to Google bug report if that can help:
logcat.txt

@jrouault
Copy link
Member

Hello,
Thanks for the logcat file! I tried to trace back your error but I couldn't find why you have this exception as everything seems to be properly initialized.
As I have no way to reproduce it currently, would you be able to make a new build with debug logs activated in IabHelper and attach the resulting logs?
This can be done either by:

  • directly replacing IabHelper.java l.74 by: boolean mDebugLog = true;
  • or adding in WizPurchase.java l.359 this line: mHelper.enableDebugLogging(true);

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

No branches or pull requests

2 participants