Prevent NPE on shutdown in features service
@@ -303,10 +303,14 @@ public class Activator extends BaseActivator {
@Override
public void removedService(ServiceReference<FeaturesListener> reference, FeaturesListener service) {
+ if (featuresService != null && service != null) {
featuresService.unregisterListener(service);
+ }
+ if (bundleContext != null && reference != null) {
bundleContext.ungetService(reference);
}
}
+ }
);
}
