- 0
ArrayIndexOutOfBoundsException problem
-
Similar Content
-
- 4 answers
- 982 views
-
- 2 answers
- 507 views
-
- 3 answers
- 901 views
-
- 1 answer
- 1,113 views
-
- 1 answer
- 10,225 views
-
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
BadCase
I have an Array that I know has 57 values as i printed the array and it its value count prior to running the following
for i,v in ipairs(newpids) do
check = string.find(ids, v)
if check ~= nil then
--do stuff
else
--do other stuff
end
end
And I get the following
ArrayIndexOutOfBoundsException: length=12: index=12
which is not making any sense since I know the array is 57 values long or I may be misunderstanding something here
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now