I’ve seen this issue reported already, but there’s specific context which seems to justify opening a new one.
It appears on Sentry (Android, Kotlin Multiplatform) and it seems always triggered by Google Play’s automated testing (note however that the app is not live yet, so reports in general are limited).
I’m not using `PaywallActivity` in the app. I’m not using a pre-configured paywall, but my own views + SDK functions.
RevenueCat is initialized early in app’s lifecycle, as instructed.
# I: There is no singleton instance. Make sure you configure Purchases before trying to get the default instance. More info here: https://errors.rev.cat/configuring-sdk
**Issue ID:** 69094325
**Project:** pivot
**Date:** 08/10/2025, 14:03:31
## Issue Summary
Purchases SDK not configured before use in PaywallActivity
**What's wrong:** The **Purchases SDK** is not configured before use. This occurs in **PaywallActivity**.
**In the trace:** The issue occurs after the app enters the foreground and **PaywallActivity** is resumed.
**Possible cause:** The **Purchases SDK** initialization may be happening too late in the application lifecycle, possibly after **PaywallActivity** attempts to access it.
## Tags
- **device:** A0001
- **device.class:** low
- **device.family:** A0001
- **environment:** production
- **handled:** no
- **installerStore:** com.android.vending
- **isSideLoaded:** false
- **level:** fatal
- **mechanism:** UncaughtExceptionHandler
- **os:** Android 11
- **os.name:** Android
- **os.rooted:** no
- **transaction:** PaywallActivity
- **user:** id:3f429b69bf6d45bf90d302c0b6d9a8bc
## Exception
### Exception 1
**Type:** I
**Value:** There is no singleton instance. Make sure you configure Purchases before trying to get the default instance. More info here: https://errors.rev.cat/configuring-sdk
#### Stacktrace
```
getSharedInstance in SourceFile [Line 12] (Not in app)
<init> in SourceFile [Line 4] (Not in app)
<init> in SourceFile [Line 1] (Not in app)
create in SourceFile [Line 23] (Not in app)
create in SourceFile [Line 2] (Not in app)
create in SourceFile [Line 3] (Not in app)
a in SourceFile [Line 16] (Not in app)
d in SourceFile [Line 75] (Not in app)
c in SourceFile [Line 13] (Not in app)
a in SourceFile [Line 48] (Not in app)
a in unknown file [Line 1] (Not in app)
b in SourceFile [Line 67] (Not in app)
b in unknown file [Line 1] (Not in app)
getPaywallViewModel in SourceFile [Line 131] (Not in app)
InternalPaywall in SourceFile [Line 123] (Not in app)
Paywall in SourceFile [Line 60] (Not in app)
```
There’s also this other crash, which occurs almost at the same time, possibly related:
# NullPointerException: Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference
**Issue ID:** 69094411
**Project:** pivot
**Date:** 08/10/2025, 14:04:02
## Issue Summary
NullPointerException in ProxyBillingActivity due to null PendingIntent
**What's wrong:** A **NullPointerException** occurred in **ProxyBillingActivity** when trying to get an IntentSender from a null PendingIntent.
**Possible cause:** The **PendingIntent** was likely not properly initialized or was unexpectedly null before being used.
## Tags
- **device:** A0001
- **device.class:** low
- **device.family:** A0001
- **environment:** production
- **installerStore:** com.android.vending
- **isSideLoaded:** false
- **level:** fatal
- **mechanism:** chained
- **os:** Android 11
- **os.name:** Android
- **os.rooted:** no
- **transaction:** ProxyBillingActivity
- **user:** id:8ec78613fbf543f6b63c337598b8abb4
## Exceptions
### Exception 1
**Type:** RuntimeException
**Value:** Unable to start activity ComponentInfo{coach.mycompass/com.android.billingclient.api.ProxyBillingActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference
#### Stacktrace
```
performLaunchActivity in ActivityThread.java [Line 3433] (Not in app)
------
handleLaunchActivity in ActivityThread.java [Line 3607] (Not in app)
------
execute in LaunchActivityItem.java [Line 85] (Not in app)
------
executeCallbacks in TransactionExecutor.java [Line 135] (Not in app)
------
execute in TransactionExecutor.java [Line 95] (Not in app)
------
handleMessage in ActivityThread.java [Line 2068] (Not in app)
------
dispatchMessage in Handler.java [Line 106] (Not in app)
------
loop in Looper.java [Line 223] (Not in app)
------
main in ActivityThread.java [Line 7680] (Not in app)
------
invokeNative in Method.java [Line null] (Not in app)
------
invoke in Method.java [Line 423] (Not in app)
------
run in RuntimeInit.java [Line 592] (Not in app)
------
main in ZygoteInit.java [Line 947] (Not in app)
------
```
### Exception 2
**Type:** NullPointerException
**Value:** Attempt to invoke virtual method 'android.content.IntentSender android.app.PendingIntent.getIntentSender()' on a null object reference
#### Stacktrace
```
onCreate in SourceFile [Line 152] (Not in app)
performCreate in Activity.java [Line 7994] (Not in app)
performCreate in Activity.java [Line 7978] (Not in app)
callActivityOnCreate in Instrumentation.java [Line 1548] (Not in app)
performLaunchActivity in ActivityThread.java [Line 3406] (Not in app)
handleLaunchActivity in ActivityThread.java [Line 3607] (Not in app)
execute in LaunchActivityItem.java [Line 85] (Not in app)
executeCallbacks in TransactionExecutor.java [Line 135] (Not in app)
execute in TransactionExecutor.java [Line 95] (Not in app)
handleMessage in ActivityThread.java [Line 2068] (Not in app)
dispatchMessage in Handler.java [Line 106] (Not in app)
loop in Looper.java [Line 223] (Not in app)
main in ActivityThread.java [Line 7680] (Not in app)
invokeNative in Method.java [Line null] (Not in app)
invoke in Method.java [Line 423] (Not in app)
run in RuntimeInit.java [Line 592] (Not in app)
```

