- 0
ArrayIndexOutOfBoundsException problem
-
Similar Content
-
- 4 answers
- 1,841 views
-
- 1 answer
- 2,150 views
-
- 2 answers
- 1,626 views
-
- 2 answers
- 1,148 views
-
Known problems 1 2 3
By Enyby,
- 38 replies
- 4,798,447 views
-
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
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