NotifyCenter will throw NullPointerException when no subscriber for slowEvent #3833
Labels
kind/enhancement
Category issues or prs related to enhancement.
Milestone
Describe the bug
When nacos inner publish a
SlowEvent
toNotifyCenter
without subscribers.the code will throw NullPointerException because get
null
from subscribe mapExpected behavior
If no subscriber for event, it should be ignore. At most print one warn log.
Acutally behavior
throw NullPointerException
How to Reproduce
Steps to reproduce the behavior:
NotifyCenter.publishEvent
any slowEvent without subscriberDesktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: