Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Appending Empty List Vector yields NPE #27639

Closed
asfimport opened this issue Feb 25, 2021 · 2 comments
Closed

[Java] Appending Empty List Vector yields NPE #27639

asfimport opened this issue Feb 25, 2021 · 2 comments

Comments

@asfimport
Copy link
Collaborator

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.

@asfimport
Copy link
Collaborator Author

Nick Bruno / @nbruno:
I can also look at this one and submit a PR for it.

@asfimport
Copy link
Collaborator Author

Liya Fan / @liyafan82:
Issue resolved by pull request 9581
#9581

@asfimport asfimport added this to the 4.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant