LuciferYang opened a new pull request, #13220: URL: https://github.com/apache/gravitino/pull/13220
### What changes were proposed in this pull request? `RoleDTO.securableObjects()` is null-guarded to return an empty list, matching `SecurableObjectDTO.privileges()`. The builder validation is unchanged. ### Why are the changes needed? Jackson deserialization with `securableObjects` absent bypasses the builder's null check, and `Arrays.asList(null)` then threw a `NullPointerException` from the accessor. Fix: #13217 ### Does this PR introduce _any_ user-facing change? No API change. `RoleDTO.securableObjects()` returns an empty list instead of throwing `NullPointerException` when the field is absent during deserialization. ### How was this patch tested? Added `TestRoleDTO`, which pins that `securableObjects()` returns an empty list when the Jackson field is absent; it fails on the pre-fix tree with a `NullPointerException` and passes after the fix. -- 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]
