簡體   English   中英

在有關inapp的GetPurchaseInformation類中調用sendBillingRequest()函數時發生NullPointerException

[英]NullPointerException when sendBillingRequest() function is called in GetPurchaseInformation class about inapp

我在以下日志中遇到了麻煩。

我已經測試過了

  1. 在我的Android應用程序中購買了inapp項目
  2. 在Google Checkout網頁上取消了購買的商品。
  3. 這時,正在運行的android應用程序中調用了GetPurhcaseInformation類的run()函數。
  4. 在此run()函數中, mService.sendBillingRequest(request)
  5. 將立即顯示以下異常日志。

但是,地下城的樣本效果很好。 我的應用程序使用其他廣播接收器。 我阻止了這些接收器,但問題仍然存在。

我發現鏈接等於我在網絡中遇到的問題。 但是這個錯誤沒有被接受並且沒有答案。 http://code.google.com/p/marketbilling/issues/detail?id=18

我想知道MarketBillingService.java:661中的代碼。

有任何想法嗎?

10-06 18:26:52.029: DEBUG/AndroidRuntime(8080): Shutting down VM
10-06 18:26:52.029: WARN/dalvikvm(8080): threadid=1: thread exiting with uncaught exception (group=0x40015560)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080): FATAL EXCEPTION: main
10-06 18:26:52.029: ERROR/AndroidRuntime(8080): java.lang.NullPointerException
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.google.android.finsky.billing.iab.MarketBillingService$BillingNotifier.showStatusBarNotifications(MarketBillingService.java:661)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.google.android.finsky.billing.iab.MarketBillingService$Stub$1.onResponse(MarketBillingService.java:409)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.google.android.finsky.billing.iab.MarketBillingService$Stub$1.onResponse(MarketBillingService.java:401)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.google.android.vending.remoting.api.VendingRequest.deliverResponse(VendingRequest.java:144)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.google.android.vending.remoting.api.VendingRequest.deliverResponse(VendingRequest.java:42)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:88)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at android.os.Handler.handleCallback(Handler.java:587)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at android.os.Handler.dispatchMessage(Handler.java:92)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at android.os.Looper.loop(Looper.java:123)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at android.app.ActivityThread.main(ActivityThread.java:3647)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at java.lang.reflect.Method.invokeNative(Native Method)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at java.lang.reflect.Method.invoke(Method.java:507)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
10-06 18:26:52.029: ERROR/AndroidRuntime(8080):     at dalvik.system.NativeStart.main(Native Method)

在文件ExecutorDelivery.javaline 88 ,存在您嘗試在此方法中使用一些NULL對象的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM