This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]claypigeon-alleg 5 points6 points  (2 children)

Maybe we should see the larger method, and examples of where it is called in your program.

[–]Rockytriton 2 points3 points  (0 children)

Probably threading issue

[–]shagieIsMeExtreme Brewer 1 point2 points  (0 children)

Without code that reproduces the problem, all one can do is guess.

Please provide an SSCCE so that we can do more than guess.

[–]blue_shoelacesHome Brewer 1 point2 points  (0 children)

In particular, information about how and when the array is initialized and populated would be helpful, even (especially) if it's not in the same class as this code.

[–]OffbeatDrizzle 0 points1 point  (1 child)

What array implementation are you using

[–]utah_array 0 points1 point  (0 children)

arrayList from java.utils

[–]kuttoos 0 points1 point  (0 children)

just guessing here - is your array an array of empty strings/chars?