App is frequently terminated with a NullPointerException when attempt to request in-app purchase.
It is assumed that product information cannot be retrieved if there is no Google account logged in to the Android phone.
It hasn't been happening since I added the null check to the two lines of code below.
Please check if it is the correct correction.
Engine\Plugins\Online\Android\OnlineSubsystemGooglePlay\Source\Java\BillingApiV2\com\epicgames\ue4\GooglePlayStoreHelper.java
Line 177 :
if (response == BillingClient.BillingResponseCode.OK && skuDetailsList != null)
Line 277:
if(response == BillingClient.BillingResponseCode.OK && skuDetailsList != null)
It was fixed/verified with [Link Removed]
java.lang.NullPointerException:
at com.epicgames.ue4.GooglePlayStoreHelper$c.a (Unknown Source:35)
at com.android.billingclient.api.BillingClientImpl.a (Unknown Source:9)
at com.epicgames.ue4.GooglePlayStoreHelper.a (Unknown Source:99)
at com.epicgames.ue4.GameActivity$w.run (Unknown Source:12)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:8167)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
How do I set a material as a post-processing material?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How to delete some elements correctly when deleting an array loop?
What is the difference between Camera and CineCamera?
What controls of umg have mouse wheel events in UE4.27?
How to implement springarm components to scale according to mouse position in spawn?
Head over to the existing Questions & Answers thread and let us know what's up.
2 |
Component | UE - Online |
---|---|
Affects Versions | 4.25.4, 4.26.1 |
Target Fix | 4.27.1 |
Created | Apr 21, 2021 |
---|---|
Resolved | Sep 9, 2021 |
Updated | Dec 1, 2022 |