diff --git a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/purchases/impl/TrackAmazonPurchase.kt b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/purchases/impl/TrackAmazonPurchase.kt index 7afb2e8ca..6d511e9dc 100644 --- a/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/purchases/impl/TrackAmazonPurchase.kt +++ b/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/purchases/impl/TrackAmazonPurchase.kt @@ -121,7 +121,7 @@ internal class TrackAmazonPurchase( if (!canTrack) return try { val curPurchasingListener = - listenerHandlerField!![listenerHandlerObject] as PurchasingListener + listenerHandlerField!!.get(listenerHandlerObject) as PurchasingListener? if (curPurchasingListener !== osPurchasingListener) { osPurchasingListener!!.orgPurchasingListener = curPurchasingListener setListener()