Skip to content

index goes out of bounds in LucidDataHandler.write() #1

Description

@GoogleCodeExporter
Here's the relevant piece of code:

LucidDataHandler.java, lines 26-39

for (int i = 0; i <= ld.getLucidLevels().size(); i++) {
    LucidLevelData data = ld.getLucidLevels().get(i);
    ...
}

When i reaches ld.getLucidLevels().size(), ld.getLucidLevels().get(i)
throws java.lang.IndexOutOfBoundsException. Changing the equality operator
in loop test from "<=" to "<" should fix the problem.

Original issue reported on code.google.com by Maciej.P...@gmail.com on 24 Jul 2009 at 4:08

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions