Crash on Android with NullPointerException

justus10000
Thu, 18 Mar 2021 22:08:34 +0000
Mobile

Hi there!

As the title suggests I am having trouble with a NullPointerException in the GooglePlayStoreHelper class on some Android devices. I am using the blueprint functions for in-app purchases and so far the system worked like a charm and I already got multiple successful in-app purchases. However I noticed in the GooglePlayConsole that there are quiet a lot (30 out of 1600) devices crashing with the following stack trace:

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)

Now I know that this is not much but does anybody have any idea what could be causing that or at least point me in some direction? I have already double checked that I do give all the functions valid references to the player controller and product identifiers. If you need any additional information I will try to provide it.

Thanks
Justus

12 posts - 1 participant