LuciferYang opened a new issue, #13217: URL: https://github.com/apache/gravitino/issues/13217
### Version main branch ### Describe what's wrong When the `securableObjects` field is absent, Jackson deserialization bypasses the builder's null check, and `Arrays.asList(null)` then throws a `NullPointerException` from `RoleDTO.securableObjects()`. The sibling DTOs (`UserDTO` and `GroupDTO`) default their lists to empty. ### Error message and/or stacktrace `java.lang.NullPointerException` from `RoleDTO.securableObjects()`, via `Arrays.asList(null)`. ### How to reproduce Deserialize a `RoleDTO` JSON payload that has no `securableObjects` field and call `securableObjects()`; it throws `NullPointerException`. ### Additional context `SecurableObjectDTO.privileges()` already null-guards its accessor, and the builder validation is unchanged. Found during a review of the `common` module. -- 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]
