SDKBOX 2.5.1.2 crash on some android devices

SDKBOX 2.5.1.2 crash on some android devices
0

Hello!
We have a trouble with some android devices like honor7a, huawei y5 2018, huawei y6 2018…

java.lang.NullPointerException:
at com.sdkbox.plugin.SDKBoxIABBillingClient.purchaseHistoryAddIf (SDKBoxIABBillingClient.java:446)
at com.sdkbox.plugin.SDKBoxIABBillingClient.access$1500 (SDKBoxIABBillingClient.java:38)
at com.sdkbox.plugin.SDKBoxIABBillingClient$4.onPurchaseHistoryResponse (SDKBoxIABBillingClient.java:400)
at com.android.billingclient.api.e$5$1.run (BillingClientImpl.java:873)
at android.os.Handler.handleCallback (Handler.java:808)
at android.os.Handler.dispatchMessage (Handler.java:101)
at android.os.Looper.loop (Looper.java:166)
at android.app.ActivityThread.main (ActivityThread.java:7529)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)

When Game launches, we check the latest transactions. Players with this error talk about crash about 1 min after the start of the game.

We try v2.4.3.3 also and have error:
java.lang.NullPointerException:
at java.util.ArrayList.addAll (ArrayList.java:588)
at com.sdkbox.plugin.SDKBoxIABBillingClient$3.onPurchaseHistoryResponse (SDKBoxIABBillingClient.java:323)
at com.android.billingclient.api.c$4$1.run (BillingClientImpl.java:484)
at android.os.Handler.handleCallback (Handler.java:795)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:166)
at android.app.ActivityThread.main (ActivityThread.java:6861)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:450)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)

We think need check null. Please, help us faster. Thanks.

PluginIAP.jar.zip (31.8 KB)
plz try it.

Seems its helps , thanx !