PCloud63514 commented on issue #9077:
URL: https://github.com/apache/gravitino/issues/9077#issuecomment-3520650455
@justinmclean Is the goal to improve the *Request.validate() method to
prevent potential NPE?
I’ve updated the code accordingly.
```
@Override
public void validate() throws IllegalArgumentException {
if (updates == null) {
throw new IllegalArgumentException("Updates list cannot be null");
}
updates.forEach(RESTRequest::validate);
}
```
If this approach looks fine, I’ll apply it to the remaining *Request.java
classes and open a PR.
Would that be okay?
--
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]