mirror of https://github.com/apache/cloudstack.git
Fix NPE while stopping the RabbitMQEventBus bean when there is no connection established with RabbitMQ Event Bus (#12635)
This commit is contained in:
parent
9dd93cef76
commit
8b38cea33c
|
|
@ -492,7 +492,7 @@ public class RabbitMQEventBus extends ManagerBase implements EventBus {
|
|||
|
||||
@Override
|
||||
public synchronized boolean stop() {
|
||||
if (s_connection.isOpen()) {
|
||||
if (s_connection != null && s_connection.isOpen()) {
|
||||
for (String subscriberId : s_subscribers.keySet()) {
|
||||
Ternary<String, Channel, EventSubscriber> subscriberDetails = s_subscribers.get(subscriberId);
|
||||
Channel channel = subscriberDetails.second();
|
||||
|
|
|
|||
Loading…
Reference in New Issue