Skip to content

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

@GoogleCodeExporter

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 [email protected] on 24 Jul 2009 at 4:08

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions