NullPointerException in transaction() on iOS roboVM
See original GitHub issueIssue details, reproduction steps/code
The game crashes during startup on a few devices. There’s no pattern of whether certain versions of iOS or devices are impacted.
Version of gdx-pay and/or relevant dependencies
gdxVersion = '1.9.11'
roboVMVersion = '2.3.10-SNAPSHOT'
gdxPayVersion = '1.2.0'
robopodsVersion = '2.2.3'
Stacktrace
java.lang.NullPointerException
at com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple.transaction(PurchaseManageriOSApple.java:211)
at com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple$AppleTransactionObserver.updatedTransactions(PurchaseManageriOSApple.java:368)
at com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple$IosFetchProductsAndInstallDelegate.didReceiveResponse(PurchaseManageriOSApple.java:318)
at com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple$IosFetchProductsAndInstallDelegate.$cb$productsRequest$didReceiveResponse$(PurchaseManageriOSApple.java)
java.lang.NullPointerException
at com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple.transaction(PurchaseManageriOSApple.java:211)
at com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple$AppleTransactionObserver.updatedTransactions(PurchaseManageriOSApple.java:368)
at com.badlogic.gdx.pay.ios.apple.PurchaseManageriOSApple$AppleTransactionObserver.$cb$paymentQueue$updatedTransactions$(PurchaseManageriOSApple.java)
at org.robovm.apple.uikit.UIApplication.main(Native Method)
at org.robovm.apple.uikit.UIApplication.main(UIApplication.java:446)
at my.package.IOSLauncher.main(IOSLauncher.java:317)
Please select the affected platforms and payment service implementation
- Amazon
- googlebilling
- googlepay
- apple iosmoe
- apple robovm
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Unable to start RoboVM iOS in IntelliJ due to ... - GitHub
Issue details I'm unable to launch a RoboVM iOS configuration. ... NullPointerException at org.robovm.idea.running.RoboVmRunProfileState.
Read more >MobiVM/robovm - Gitter
AS work around I would try adding following code in AppDelegate: SKProductsRequestDelegateAdapter workaround = new SKPaymentTransactionObserverAdapter() { @ ...
Read more >Java. java.lang.NullPointerException in Transaction
I have never used TRANSACTIONS in JAVA. I found some example and tryed to my task base on that. I get NullPointerExeption. This...
Read more >How to Fix and Avoid NullPointerException in Java - Rollbar
NullPointerException in Java occurs when a variable is accessed which is not pointing to any object and refers to nothing or null.
Read more >org.robovm.apple.foundation.NSData java code examples
Best Java code snippets using org.robovm.apple.foundation. ... transactionReceipt appears broken (was deprecated starting iOS 7.0).", e);. origin: robovm/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Even more interesting is the fact that I know from at least one person with that issue that did not do any purchases. The crash happened after downloading the app for the first time.
I will test whether considering getTransactionDate() returning null as invalid transaction does the trick.
Stumbled across this related issue: https://github.com/robovm/robovm-robopods/issues/101
Closed because seems not to occur for other people. Please comment on this issue otherwise.