Open GoogleCodeExporter opened 8 years ago
I have a report that has the same NPE issue on the same line.
Android version Android 4.4
Device HTC One (m7)
java.lang.NullPointerException
at
com.solarsong.toomanycats.billing.util.IabHelper.launchPurchaseFlow(IabHelper.ja
va:386)
at
com.solarsong.toomanycats.billing.util.IabHelper.launchPurchaseFlow(IabHelper.ja
va:338)
at org.cocos2dx.cpp.AppActivity.purchaseRemoveAds(AppActivity.java:247)
at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native Method)
at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Cocos2dxRenderer.java:132)
at org.cocos2dx.lib.Cocos2dxGLSurfaceView$9.run(Cocos2dxGLSurfaceView.java:257)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1463)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
The line in question is
Bundle buyIntentBundle = mService.getBuyIntent(3, mContext.getPackageName(), sku, itemType, extraData);
So either mService or mContext was null in this case. I'm guessing that
something was disposed mid-execution?
Original comment by thomas.d...@gmail.com
on 23 Jul 2014 at 5:10
Original issue reported on code.google.com by
ferra...@gmail.com
on 24 Feb 2014 at 11:58