mirror of https://github.com/apache/cloudstack.git
hanlde case where no EventBus implementation is configured in component
locator config file
This commit is contained in:
parent
c35b016d90
commit
1a2822d3bf
|
|
@ -181,7 +181,9 @@ public class ActionEventCallback implements MethodInterceptor, AnnotationInterce
|
|||
Adapters<EventBus> eventBusImpls = locator.getAdapters(EventBus.class);
|
||||
if (eventBusImpls != null) {
|
||||
Enumeration<EventBus> eventBusenum = eventBusImpls.enumeration();
|
||||
_eventBus = eventBusenum.nextElement();
|
||||
if (eventBusenum != null && eventBusenum.hasMoreElements()) {
|
||||
_eventBus = eventBusenum.nextElement();
|
||||
}
|
||||
}
|
||||
_eventBusLoaded = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue