nidjis / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

NullPointerException #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
STEPS TO REPRODUCE:
1. startSetup
2. disconnect (onServiceConnected is called)
3. launchPurchaseFlow

EXPECTED OUTPUT:
Gracefully ignore the launch or inform the user with the disconnection!

ACTUAL OUTPUT:
NullPointerException; the issue is that the connection can be lost and mService 
is assigned to null and this scenario isn't verified before the line:
Bundle buyIntentBundle = mService.getBuyIntent(3, mContext.getPackageName(), 
sku, itemType, extraData);

AFFECTED ORDER IDS (IF RELEVANT):
I've 20 orders affected by different exceptions in the in-app-billing library. 
It's my first application at Android and I now understand why developers prefer 
IOS.

OS VERSION:

MARKET/MYAPPS VERSION:

DEVICE:

OUTPUT FROM ADB BUGREPORT ATTACHED:
(Note: The output from "adb bugreport" is required for all bug reports.)

class java.lang.NullPointerException
Msg: com.android.vending.billing.IabHelper.launchPurchaseFlow:385 
com.android.vending.billing.IabHelper.launchPurchaseFlow:337 
brilliant.sari.CBrilliantSari.onBuyFullVersion:1088 
brilliant.sari.CBrilliantSari$20.onClick:1242 
android.view.View.performClick:3127

NOTES:

Original issue reported on code.google.com by forqan.t...@gmail.com on 4 May 2013 at 8:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am having same issue for my app, please any fix for it. Thanks in advance!

Original comment by bipinva...@gmail.com on 16 Feb 2014 at 7:46

GoogleCodeExporter commented 8 years ago
Same here, I'm having the same issue. 

Original comment by hyde....@gmail.com on 15 Jun 2014 at 8:09

GoogleCodeExporter commented 8 years ago
Hi, I am having the same issue, however, it seems there are no solutions 
provided to this online. As I see it has been two years already, I hope the fix 
comes out for this soon.

Original comment by mait...@neufconsulting.com on 9 Apr 2015 at 3:04