Yeah, that was basically a question for the SDKBox support team. @pabitrapadhy
You could implement a connection check, before calling the IAP logic, but Google IAB service should check that on it’s own and give you a connection error at the IAP screen.
The problem with Google IAB is, that the developer/implementation examples seem to lack a lot of checks, are complex and cannot be easily adopted to take care of every issue.
Hello , I am getting following issue in SDKBox-IAP, I am working on cocos2d-x 3.7.1 , How can I change in .Jar file to remove this:-
FATAL EXCEPTION: GLThread 223
Process: com.blacklight.spidersolitaire, PID: 16491
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.util.Iterator java.util.ArrayList.iterator()’ on a null object reference
at com.sdkbox.plugin.SDKBoxIAPGooglePlay.restorePurchase(SDKBoxIAPGooglePlay.java:257)
at com.sdkbox.plugin.IAPWrapper.nativeOnInitialized(Native Method)
at com.sdkbox.plugin.IAPWrapper.access$000(IAPWrapper.java:9)
at com.sdkbox.plugin.IAPWrapper$1.run(IAPWrapper.java:26)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1501)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1278)
I used latest IAP version , but this is the result from google,
Exceptions
java.lang.NullPointerException
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.util.Iterator java.util.ArrayList.iterator()’ on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.util.Iterator java.util.ArrayList.iterator()’ on a null object reference
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.util.Iterator java.util.ArrayList.iterator()’ on a null object reference
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.util.Iterator java.util.ArrayList.iterator()’ on a null object reference
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.util.Iterator java.util.ArrayList.iterator()’ on a null object reference