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.


Line 177 :
if (response == BillingClient.BillingResponseCode.OK && skuDetailsList != null)

Line 277:
if(response == BillingClient.BillingResponseCode.OK && skuDetailsList != null)

Steps to Reproduce

It was fixed/verified with [Link Removed]



at com.epicgames.ue4.GooglePlayStoreHelper$c.a (Unknown Source:35)

at (Unknown Source:9)

at com.epicgames.ue4.GooglePlayStoreHelper.a (Unknown Source:99)

at com.epicgames.ue4.GameActivity$ (Unknown Source:12)

at android.os.Handler.handleCallback (

at android.os.Handler.dispatchMessage (

at android.os.Looper.loop (

at (

at java.lang.reflect.Method.invoke (Native Method)

at$ (

at (

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

Login to Vote

ComponentUE - Online
Affects Versions4.
Target Fix4.27.1
Fix Commit17399197
Release Commit17399197
CreatedApr 21, 2021
ResolvedSep 9, 2021
UpdatedDec 1, 2022
View Jira Issue