commit | 971fb7585cdd4fa7c4fddc65446312042ab3ce2e | [log] [tgz] |
---|---|---|
author | Pascal Rapicault <prapicau> | Tue Dec 04 03:48:38 2007 +0000 |
committer | Pascal Rapicault <prapicau> | Tue Dec 04 03:48:38 2007 +0000 |
tree | 145c81c965502b6325fb44e23828a5e39c676eca | |
parent | 69061f14906bedb02efab08f73b988f087b3f344 [diff] |
don't proceed with registration when event bus is missing.
diff --git a/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/p2/garbagecollector/GCActivator.java b/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/p2/garbagecollector/GCActivator.java index 0629d51..798c689 100644 --- a/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/p2/garbagecollector/GCActivator.java +++ b/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/p2/garbagecollector/GCActivator.java
@@ -54,6 +54,7 @@ ProvisioningEventBus eventBus = (ProvisioningEventBus) getService(GCActivator.context, ProvisioningEventBus.class.getName()); if (eventBus == null) { LogHelper.log(new Status(IStatus.ERROR, GCActivator.ID, Messages.Missing_bus)); + return; } eventBus.addListener(busListener = new SynchronousProvisioningListener() { //The GC is triggered when an uninstall event occured during a "transaction" and the transaction is committed.