Skip to content

[Java] Appending Empty List Vector yields NPE #27639

Description

@asfimport

Attempting to append a list vector that is empty to another vector that is also empty using VectorAppender raises an NPE. Instead, it should just skip processing and do nothing. 


java.lang.IndexOutOfBoundsException: index: 0, length: 4 (expected: range(0, 0))
 at org.apache.arrow.memory.ArrowBuf.checkIndexD(ArrowBuf.java:318)
 at org.apache.arrow.memory.ArrowBuf.chk(ArrowBuf.java:305)
 at org.apache.arrow.memory.ArrowBuf.getInt(ArrowBuf.java:424)
 at org.apache.arrow.vector.util.VectorAppender.visit(VectorAppender.java:195)
 at org.apache.arrow.vector.util.VectorAppender.visit(VectorAppender.java:45)
 at org.apache.arrow.vector.complex.ListVector.accept(ListVector.java:449)

Reporter: Nick Bruno / @nbruno

PRs and other links:

Note: This issue was originally created as ARROW-11788. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions