- 0
ArrayIndexOutOfBoundsException problem
-
Similar Content
-
- 4 answers
- 1,825 views
-
- 1 answer
- 2,129 views
-
- 2 answers
- 1,611 views
-
- 2 answers
- 1,138 views
-
Known problems 1 2 3
By Enyby,
- 38 replies
- 4,785,783 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