Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARIndicatorView.java line 271 com.arindicatorview.ARIndicatorView.setSelectedPosition #4

Open
theoyuncu8 opened this issue Apr 16, 2023 · 0 comments

Comments

@theoyuncu8
Copy link

Hello, @MartinStamenkovski I am using your project in my application. but I am getting error about line 271. please can you help

Fatal Exception: java.lang.IndexOutOfBoundsException Index: 11, Size: 11 java.util.ArrayList.get (ArrayList.java:437) com.arindicatorview.ARIndicatorView.setSelectedPosition (ARIndicatorView.java:271)
///
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException length=15; index=-1 java.util.ArrayList.get (ArrayList.java:439) com.arindicatorview.ARIndicatorView.setSelectedPosition (ARIndicatorView.java:271)

error line in my app

if (ar_indicator.getSelectedPosition() >= 0 && ar_indicator.getSelectedPosition() < ar_indicator.getIndicatorSize()) { ar_indicator.setSelectedPosition(ar_indicator.getSelectedPosition() + 1); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant