Skip to content

Commit d304da5

Browse files
authoredMar 6, 2025
apacheGH-653: Nullify fieldReader when invalidating parent object (apache#654)
## What's Changed Set the fieldReader object to null when invalidating the parent reader. This will prevent odd behavior if the object is reused. Closes apache#653
1 parent e8d86a1 commit d304da5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java

+1
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ public UnionVector promoteToUnion() {
769769
}
770770

771771
protected void invalidateReader() {
772+
fieldReader = null;
772773
reader = null;
773774
}
774775

0 commit comments

Comments
 (0)
Please sign in to comment.