Skip to content

IndexOutOfBoundsException in TraceData #49

@qiyitang71

Description

@qiyitang71

Original report by Qiyi Tang (GitHub: qiyitang71).


In the TraceData

private void processChoiceGenerator(ChoiceGenerator<?> cg, int prevThreadIdx, int pi, int height, ThreadInfo ti) {
    // thread start/join highlight
    if (cg.getId() == "START" || cg.getId() == "JOIN") {
        if (lineTable.get(pi).getTextLine(height - 1).isSrc()) {
            threadStartSet.add(new Pair<>(pi, height - 1));
        }
    }

height can be zero which gives rise to an IndexOutOfBoundsException.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcritical

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions