Error: java.lang.RuntimeException: Unable to start activity: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
I am fetching a list of products from an api using retrofit and displaying it in an activity using recycler view. Now when I click on a specific item it should open its details page where there are more details about the product. It’s working fine for first 15 items but after that I get this error in my logcat and in the app it just throws me to the first screen which contains a button(view products).
Error: java.lang.RuntimeException: Unable to start activity: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
I am fetching a list of products from an api using retrofit and displaying it in an activity using recycler view. Now when I click on a specific item it should open its details page where there are more details about the product. It’s working fine for first 15 items but after that I get this error in my logcat and in the app it just throws me to the first screen which contains a button(view products).
Error: java.lang.RuntimeException: Unable to start activity: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
I am fetching a list of products from an api using retrofit and displaying it in an activity using recycler view. Now when I click on a specific item it should open its details page where there are more details about the product. It’s working fine for first 15 items but after that I get this error in my logcat and in the app it just throws me to the first screen which contains a button(view products).