| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Added null checks for setPosition and test cases to validate the issue
|
I do not have permissions to set labels ❯ gh pr edit 938 --add-label "bug-fix" GraphQL: Kaustav-Sarkar does not have the correct permissions to execute `AddLabelsToLabelable` (addLabelsToLabelable) |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you!
Sorry, something went wrong.
|
Ok. The JNI test is an upstream build issue, but @Kaustav-Sarkar can you fix the format error in .gitignore? https://github.com/apache/arrow-java/actions/runs/20526378098/job/59055944634?pr=938 |
Sorry, something went wrong.
…pache#938) ## apacheGH-399 Fix setPosition fails with NullPointerException Fixed a `NullPointerException` in `DenseUnionWriter#setPosition`. The issue was that `setPosition` tried to update all writers in its internal array, even if they hadn't been initialized yet. I added a null check so it only updates writers that actually exist. Also added a regression test (`TestDenseUnionWriterNPE`) to verify the fix and updated `.gitignore`. Closes apache#399.
| Back | FazBrowse Home | New Git URL |
GH-399 Fix setPosition fails with NullPointerException
Fixed a NullPointerException in DenseUnionWriter#setPosition.
The issue was that setPosition tried to update all writers in its internal array, even if they hadn't been initialized yet. I added a null check so it only updates writers that actually exist.
Also added a regression test (TestDenseUnionWriterNPE) to verify the fix and updated .gitignore.
Closes #399.