Orcohen33 opened a new pull request, #3557: URL: https://github.com/apache/eventmesh/pull/3557
Fixes #3410. ### Motivation The issue was that the getData() method in SendAsyncEventProcessor could return null, which could cause a NullPointerException to be thrown. To prevent this, the suggested solution is to use Objects.requireNonNull(). ### Modifications The modification made to the code was to add a call to Objects.requireNonNull() around the getData() method call in SendAsyncEventProcessor. This ensures that if getData() returns null, a NullPointerException will be thrown immediately, making it easier to locate and fix the issue. ### Documentation - Does this pull request introduce a new feature? (no) - If yes, how is the feature documented? (n/a) - If a feature is not applicable for documentation, explain why? (n/a) - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation (n/a) -- 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]
