#periva101-outofbounds

1 messages · Page 1 of 1 (latest)

unborn eagle
#

hello there @civic ivy , which line in your code is this error coming from?

civic ivy
#

onGooglePayResult

#

is GooglePayLauncher.Result.Failed -> {
Toast.makeText(requireContext(), result.error.toString(), Toast.LENGTH_LONG).show()
}

midnight pivot
#

Hello, stepping in. We would need a bit more information for debugging. Can you print the entire result variable?

#

The error is quite common tho, it simply that you have accessed some array's index while it doesn't actually contains elements at the position

civic ivy
#

I am not access anything , this call back is trigger from stripe launcher with that expcetion

midnight pivot
#

Yes it's my assumption based on the error message. Unless we have a full stack trace, it's difficult to know what is actually happening

#

You can print out result, put breakpoints around the place.... There are steps and attempt to try.