Anurag-S1ngh opened a new pull request, #19252: URL: https://github.com/apache/iceberg/pull/19252
## Summary - `DynFields.AlwaysNull` did not override `bind`, so binding a default-always-null field dereferenced the null backing `Field` and threw `NullPointerException`. - Override `bind` to return a `BoundField` directly, matching `DynMethods.NOOP`. ## Changes - `DynFields.AlwaysNull`: override `bind`. - Add `TestDynFields`, covering `build(target)`, `buildChecked(target)`, and `build().bind(target)`. ## Testing - `./gradlew :iceberg-common:test` passes. - All three new tests fail with the original `NullPointerException` without the change. - `spotlessApply` run for the module. Closes #17044 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
