gitlab #25
Change-Id: Ib4c2f6534ebdf09129f1491578f0d2df86e9b6cf
// Register initially availble routers
routerTracker = new ServiceTracker<>(context, Router.class.getName(), null);
routerTracker.open();
- for (Object router : routerTracker.getServices()) {
- routeService.registerRouter((Router) router);
+ Object[] routers = routerTracker.getServices();
+ if (routers != null) {
+ for (Object router : routers)
+ routeService.registerRouter((Router) router);
}
// have a service listener to implement the whiteboard pattern