duccong / marketbilling

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

NullPointerException (PurchaseFragment.java:1049) #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Install Dungeons example and get it up and running
2. Buy the sword. After pressing "buy" on the market screen press the back 
button. Now quickly press the buy button again to tricker the market screen 
again. Time it so that you press buy again before the purchase is completed. 
Result is below stacktrace. Also when later trying to buy the item the market 
says "You already have a pending order for this item.". Even though the order 
shows as completed and later is canceled in the merchant interface. Seems the 
item is dead for the device. Reboot of phone, clearing of data didn't work.

Stacktrace:

08-16 00:46:30.415: WARN/dalvikvm(446): threadid=1: thread exiting with 
uncaught exception (group=0x40015560)
08-16 00:46:30.415: ERROR/AndroidRuntime(446): FATAL EXCEPTION: main
08-16 00:46:30.415: ERROR/AndroidRuntime(446): java.lang.NullPointerException
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
com.google.android.finsky.activities.PurchaseFragment.onPurchase(PurchaseFragmen
t.java:1049)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
com.google.android.finsky.activities.PurchaseFragment.onStateChange(PurchaseFrag
ment.java:891)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
com.google.android.finsky.billing.CheckoutPurchase.attach(CheckoutPurchase.java:
338)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
com.google.android.finsky.activities.PurchaseFragment.onStart(PurchaseFragment.j
ava:557)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:833)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:996)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.support.v4.app.BackStackRecord.run(BackStackRecord.java:616)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.ja
va:1319)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:388)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.os.Handler.handleCallback(Handler.java:587)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.os.Handler.dispatchMessage(Handler.java:92)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.os.Looper.loop(Looper.java:130)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
android.app.ActivityThread.main(ActivityThread.java:3683)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
java.lang.reflect.Method.invokeNative(Native Method)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
java.lang.reflect.Method.invoke(Method.java:507)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-16 00:46:30.415: ERROR/AndroidRuntime(446):     at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by martiner...@gmail.com on 16 Aug 2011 at 5:51

GoogleCodeExporter commented 8 years ago
This sounds like the exact problem that is plaguing me and my users. It's 
destroying my income now.

We were complaining here: 
http://code.google.com/p/marketbilling/issues/detail?id=39 , but that thread 
got closed and we were told to reference "internal bug reference number is: 
5126349" to support.

It's been a problem for months now unfortunately.

Original comment by Adam.Sch...@gmail.com on 14 Sep 2011 at 12:01