[ https://issues.apache.org/jira/browse/ARROW-11788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Bruno updated ARROW-11788: ------------------------------- Description: 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. {noformat} 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){noformat} was: 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. {noformat} java.lang.IndexOutOfBoundsException: index: 0, length: 4 (expected: range(0, 0))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){noformat} > [Java] Appending Empty List Vector yields NPE > --------------------------------------------- > > Key: ARROW-11788 > URL: https://issues.apache.org/jira/browse/ARROW-11788 > Project: Apache Arrow > Issue Type: Bug > Components: Java > Affects Versions: 3.0.0 > Reporter: Nick Bruno > Priority: Major > > 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. > > {noformat} > 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){noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)