-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Closed
Labels
component/need-triageNeed maintainers to triageNeed maintainers to triagetype/need-triageNeed maintainers to triageNeed maintainers to triage
Description
Pre-check
- I am sure that all the content I provide is in English.
Search before asking
- I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo Java 3.3
Steps to reproduce this issue
While researching Dubbo's EventBus mechanism today, I discovered some hidden bugs in the code. Therefore, I am proposing fixes as follows:
- No null-check for the event object itself, which may lead to a NullPointerException
- No type validation using instanceof before performing type casting.
- tryInvoke is a public method and is called frequently, but it lacks a null-check for the runnable object.
What you expected to happen
Improve null-check operations and type validation. Of course, I am happy to submit a PR to complete this work.
Anything else
No response
Are you willing to submit a pull request to fix on your own?
- Yes I am willing to submit a pull request on my own!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
component/need-triageNeed maintainers to triageNeed maintainers to triagetype/need-triageNeed maintainers to triageNeed maintainers to triage
Type
Projects
Status
Todo