Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

java.lang.IllegalStateException: IAB helper is not set up #199

@MarcinLament

Description

@MarcinLament

A considerable number of my users get this exception. However, I cannot reproduce it on any of my devices.

java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: queryInventory
at org.onepf.oms.appstore.googleUtils.IabHelper.checkSetupDone(IabHelper.java:806)
at org.onepf.oms.appstore.googleUtils.IabHelper.queryInventory(IabHelper.java:566)
at org.onepf.oms.OpenIabHelper.queryInventory(OpenIabHelper.java:930)
at org.onepf.oms.OpenIabHelper$5.run(OpenIabHelper.java:957)
at java.lang.Thread.run(Thread.java:864)

I can see that you throw IllegalStateException when mSetupDone is false in checkSetupDone() in org.onepf.oms.appstore.googleUtils.IabHelper

I guess we could add 'catch (IllegalStateException ex)' to the queryInventoryAsync method in OpenIabHelper to handle this exception.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions