We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When nacos inner publish a SlowEvent to NotifyCenter without subscribers.
SlowEvent
NotifyCenter
the code will throw NullPointerException because get null from subscribe map
null
com.alibaba.nacos.common.notify.DefaultSharePublisher line 98 Set<Subscriber> subscribers = subMappings.get(slowEventType);
Expected behavior If no subscriber for event, it should be ignore. At most print one warn log.
Acutally behavior throw NullPointerException
[nacos.publisher-com.alibaba.nacos.common.notify.SlowEvent] ERROR com.alibaba.nacos.common.notify.NotifyCenter - Event listener exception : {} java.lang.NullPointerException: null at com.alibaba.nacos.common.notify.DefaultSharePublisher.receiveEvent(DefaultSharePublisher.java:101) at com.alibaba.nacos.common.notify.DefaultPublisher.openEventHandler(DefaultPublisher.java:117) at com.alibaba.nacos.common.notify.DefaultPublisher.run(DefaultPublisher.java:94)
How to Reproduce Steps to reproduce the behavior:
NotifyCenter.publishEvent
Desktop (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:
Successfully merging a pull request may close this issue.
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: