InAppBilling : crash on Android when stopping the service shortly after a getProducts call
I've noticed a bug in the InAppBilling ANE.
When calling InAppBilling.service.stop() shortly (almost instantly) after a call to InAppBilling.service.getProducts, the app crashes on Android.
In the bug report, we have a NullPointerException in the "queryPurchases" method of the IabHelper class.
I assume we try to access a ressource disposed by the InAppBilling.service.dispose() method.
Can you provide a temporary workaround until the bug is fixed?
Thanks for your help.
Hi,
Can you log this as a bug in our issue tracker? You should have the access details in your registration email.
Cheers,
Michael
-
Hi,
This is being tracked in github now:
https://github.com/distriqt/airnativeextensions/issues/74
It's a tricky one to fix as it's interrupting a google API service call.
-
Anonymous commented
I experienced the same crash.
java.lang.NullPointerException
at com.distriqt.extension.inappbilling.util.IabHelper.queryPurchases(IabHelper.java:860)
at com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:544)
at com.distriqt.extension.inappbilling.util.IabHelper.queryInventory(IabHelper.java:522)
at com.distriqt.extension.inappbilling.util.IabHelper$2.run(IabHelper.java:617)
at java.lang.Thread.run(Thread.java:841)