Open LSukie opened 2 months ago
Thank you for your pull request. In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement (CLA). It's all electronic and will take just a few minutes. Please download CLA form here, sign, and e-mail back to cla@alluxio.org
alluxio-bot, check this please.
Automated checks report:
All checks passed!
What changes are proposed in this PR?
This PR adds a null check in the
DelegatingBlockReader#toString()
method to handle cases where the underlyingBlockReader
is null. This prevents potential NullPointerException during thetoString()
call.Additionally, unit tests were added to verify this new behavior.
Why are the changes needed?
The change ensures that the
DelegatingBlockReader
can gracefully handle cases where the underlyingBlockReader
is null, which improves robustness.Does this PR introduce any user-facing changes?
No.
How was this patch tested?
Unit tests have been added and verified with the current testing framework.