Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:29:46 +0000
committerslewis2007-04-20 22:29:46 +0000
commit1b21884e8d1101fe0a3e61ea502cea361cc234a9 (patch)
tree860e904069972f070fe239b3f857985484ac4d69
parent81024b2500ce2c69d646de616a56bcd060cf0ccf (diff)
downloadorg.eclipse.ecf-1b21884e8d1101fe0a3e61ea502cea361cc234a9.tar.gz
org.eclipse.ecf-1b21884e8d1101fe0a3e61ea502cea361cc234a9.tar.xz
org.eclipse.ecf-1b21884e8d1101fe0a3e61ea502cea361cc234a9.zip
Changes to have all activator classes return non-null with calls to getDefault(), even in non-OSGi environments
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.irc/src/org/eclipse/ecf/internal/provider/irc/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.irc/src/org/eclipse/ecf/internal/provider/irc/Activator.java b/providers/bundles/org.eclipse.ecf.provider.irc/src/org/eclipse/ecf/internal/provider/irc/Activator.java
index 01421775a..12f3e492f 100644
--- a/providers/bundles/org.eclipse.ecf.provider.irc/src/org/eclipse/ecf/internal/provider/irc/Activator.java
+++ b/providers/bundles/org.eclipse.ecf.provider.irc/src/org/eclipse/ecf/internal/provider/irc/Activator.java
@@ -92,7 +92,10 @@ public class Activator implements BundleActivator {
/**
* Returns the shared instance.
*/
- public static Activator getDefault() {
+ public synchronized static Activator getDefault() {
+ if (plugin == null) {
+ plugin = new Activator();
+ }
return plugin;
}

Back to the top