Skip to content

exception #1

@Christian0874

Description

@Christian0874

Hi,

i don't know if this si the correct place. i'm new on Java. i was looking your code and get an exception java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.LinkedList.checkElementIndex(LinkedList.java:555)
at java.util.LinkedList.get(LinkedList.java:476)
at eu.wuttke.tinyedifact.serialization.EdifactDeserializer.convertTokensToSegments(EdifactDeserializer.java:106)

        for (int i = 0; i <= key; i++) {
            String value = (i == key) ? token.getValue() : "";
            
            // If there is an initial element set as a string, we need to convert it into an array before we append to it
            SegmentElement ele = segments.get(currentSegment).getElements().get(part);

when try to parser ABC78255001

String message = "UNB+UNOA:3+::ABC78255001+::HEXAGON ABC+2007

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions