Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:29:39 +0000
committerslewis2007-04-20 22:29:39 +0000
commit4e12a64c8b980f2f6141ab4431e0b638cd9f7d0f (patch)
tree77b1b842b847f68f997f5091471450bac8f89d74
parent0e89b47d9623931aa05b75bc14303dbfabd46e45 (diff)
downloadorg.eclipse.ecf-4e12a64c8b980f2f6141ab4431e0b638cd9f7d0f.tar.gz
org.eclipse.ecf-4e12a64c8b980f2f6141ab4431e0b638cd9f7d0f.tar.xz
org.eclipse.ecf-4e12a64c8b980f2f6141ab4431e0b638cd9f7d0f.zip
Changes to have all activator classes return non-null with calls to getDefault(), even in non-OSGi environments
-rw-r--r--framework/bundles/org.eclipse.ecf.presence.bot/src/org/eclipse/ecf/internal/presence/bot/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence.bot/src/org/eclipse/ecf/internal/presence/bot/Activator.java b/framework/bundles/org.eclipse.ecf.presence.bot/src/org/eclipse/ecf/internal/presence/bot/Activator.java
index 4fcab698d..b0334980d 100644
--- a/framework/bundles/org.eclipse.ecf.presence.bot/src/org/eclipse/ecf/internal/presence/bot/Activator.java
+++ b/framework/bundles/org.eclipse.ecf.presence.bot/src/org/eclipse/ecf/internal/presence/bot/Activator.java
@@ -121,7 +121,10 @@ public class Activator implements BundleActivator {
*
* @return the shared instance
*/
- public static Activator getDefault() {
+ public synchronized static Activator getDefault() {
+ if (plugin == null) {
+ plugin = new Activator();
+ }
return plugin;
}

Back to the top