wdtheprovider / in-app-purchases-subscription

Working on Android In-App Purchases for Google Play billing library with the latest version 6.0.0+
https://github.com/wdtheprovider/in-app-purchases-subscription
129 stars 42 forks source link

Fix java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 in com.poppychap.capperplaytime3.activities.BuyCoinActivity.onBackPressed (BuyCoinActivity.java:255) #17

Closed wdtheprovider closed 1 year ago

wdtheprovider commented 1 year ago

Version 1.0(1)

Stacktrace

com.poppychap.capperplaytime3.activities.BuyCoinActivity.onBackPressed (BuyCoinActivity.java:255);

androidx.core.app.ComponentActivity.superDispatchKeyEvent (ComponentActivity.java:124);

androidx.core.view.KeyEventDispatcher.dispatchKeyEvent (KeyEventDispatcher.java:86);

androidx.core.app.ComponentActivity.dispatchKeyEvent (ComponentActivity.java:142);

androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent (AppCompatActivity.java:601);

androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent (WindowCallbackWrapper.java:60);

androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent (AppCompatDelegateImpl.java:3106);

Reason

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Link to App Center